"If you used printf instead of writeln […]" [ignore previous post]

Abe via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 31 18:12:37 PDT 2014


Sorry: accidentally hit something on the keyboard that the Mac 
and/or Chromium interpreted as "post it right now".  :-(


This msg. is to confirm that "If you used printf instead of 
writeln […]", from an above msg. from Adam, is also correct on 
Mac OS X [64-bit Intel].

Given this source code:

   import core.stdc.stdio;
   void main() {
     printf("hello world!\n");
   }


… the size is now down to 334744 bytes [w/o any stripping], i.e. 
326.8984375 kbytes for those so inclined.  The length of the 
output from "nm" for _this_ executable is 1552 lines [again, w/o 
any stripping].

— Abe



More information about the Digitalmars-d mailing list