Latest gcc optimizes ptr = malloc(size); memset(ptr, 0, size); to a calloc call. Guess how I implement calloc?
@SortieCat Semantically you should always use -ffreestanding to tell the compiler it cannot assume existence of libc interfaces.
-
-
@SortieCat In principle -fno-builtin is just the opposite direction - precludes replacing std funcs with builtins but not vice versa. -
.
@RichFelker Good point. I'll just use -ffreestanding then for libc. Don't like that compiler design, but this seems least trouble for me.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.