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

builtin: reduce a bit the generated #if defined checks for small programs #23484

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

spytheman
Copy link
Member

@spytheman spytheman commented Jan 16, 2025

For a hello world program, the C code reduction is a few hundred bytes:

#0 13:27:38 ^ master ~/code/v>ls -lart old.c new.c new2.c new3.c new4.c new5.c new6.c
-rw-rw-r-- 1 delian delian 45569 Jan 16 12:59 old.c
-rw-rw-r-- 1 delian delian 45207 Jan 16 12:59 new.c
-rw-rw-r-- 1 delian delian 45367 Jan 16 13:07 new2.c
-rw-rw-r-- 1 delian delian 45259 Jan 16 13:08 new3.c
-rw-rw-r-- 1 delian delian 45102 Jan 16 13:09 new4.c
-rw-rw-r-- 1 delian delian 45102 Jan 16 13:19 new5.c
-rw-rw-r-- 1 delian delian 45102 Jan 16 13:25 new6.c

Copy link

Connected to Huly®: V_0.6-21914

@spytheman spytheman merged commit 12d8f17 into vlang:master Jan 16, 2025
72 checks passed
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

Successfully merging this pull request may close these issues.

1 participant