Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip empty LN with # instead of filling LN #39

Open
gapkalov opened this issue Nov 21, 2019 · 1 comment
Open

skip empty LN with # instead of filling LN #39

gapkalov opened this issue Nov 21, 2019 · 1 comment

Comments

@gapkalov
Copy link

gapkalov commented Nov 21, 2019

gcc pack more than six sequent empty line into one line with using of # directive
like this one:

before:
\r
\r
\r
\r
\r
\r
void foo(){}
after:
# 6 "filename.ext"
void foo(){}

https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html

this is dramatically decrease size of output file

@shevek
Copy link
Owner

shevek commented Dec 2, 2019

Very good idea, and somewhat artfully chosen. #line directives were a pain in the [....] and I'll spend a bit more time on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants