Skip to content
Discussion options

You must be logged in to vote

I presume some libc calls are big, especially fprintf.

It's really not that big, but everything's relative.

I seem to recall seeing an alternate vfprintf somewhere

elkscmd/lib/tiny_vfprintf.c. It isn't in the C library directly as the names conflict with the larger printf; it can be specified explicitly when desired, as is done in several elkscmd/Makefiles.

Use ia16-elf-gcc -melks for tighter code

The -melks option is required for producing ELKS binaries. Generally, the -Os (optimize for size) optimization is also required, as others produce far too much code. Being an optimizing compiler, GCC normally produces both extremely small and fast code for the 8086.

I also noticed that th…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cpiker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants