home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / modula3 / 1167 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.0 KB

  1. Path: sparky!uunet!ogicse!sequent!gaia.ucs.orst.edu!news.cs.indiana.edu!babbage.ece.uc.edu!don.ece.uc.edu!dsims
  2. From: dsims@don.ece.uc.edu (David Sims)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Why are M3 executables so big?
  5. Message-ID: <C1Hp3L.3z7@babbage.ece.uc.edu>
  6. Date: 27 Jan 93 01:50:08 GMT
  7. Article-I.D.: babbage.C1Hp3L.3z7
  8. Sender: root@babbage.ece.uc.edu (Operator)
  9. Distribution: usa
  10. Organization: University of Cincinnati
  11. Lines: 20
  12. Nntp-Posting-Host: don.ece.uc.edu
  13.  
  14. Why does the following hello-world program create a 400K stripped
  15. executable on my Sparc box?  The .mo file is a mere 399 bytes, but the
  16. executable balloons to 400K.  Are the Wr, Stdio, and other run-time
  17. libraries really that large?
  18.  
  19. Or maybe I installed M3 wrong?
  20.  
  21. MODULE Main;
  22.  
  23. IMPORT Wr,Stdio;
  24.  
  25. BEGIN
  26.   Wr.PutText(Stdio.stdout,"Hello, world.\n");
  27. END Main.
  28.  
  29. -- 
  30. David Sims                    Dept. of Electrical and Computer Engineering
  31. david.sims@uc.edu             University of Cincinnati
  32. (513) 556-2499                Cincinnati OH  45221-0030
  33. RIPEM mail accepted.          USA
  34.