| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: GNU... |
Hi Charles. 26-Sep-03 03:27:04, Charles Angelich wrote to Bob Stout CA> 1237d03b0f3e c_echo CA> Hello Bob - HA>>>> The GNU compiler for DOS produces 80kb .exe for this test! Is HA>>>> the GNU compiler djgpp a toy thing? >> On Linux it takes 4kb, very weird it takes so much under DOS! BS>> The fault is in the libraries... DJGPP was the first PC port of BS>> gcc and the libraries are really terrible! Link in almost BS>> anything and most of the library gets sucked in with it whether BS>> you need it or not. CA> I have followed some instructions to modify Borland to use a very CA> tiny 'model' that allows me to compile binaries the size of ASM CA> source code binaries but it requires the use of bios calls for CA> screen displays (as ASM would do it). I haven't used it in more CA> than a decade but it did work. ;-) yeah, Compilers just convert C to assembler, and if you modify the stub (the bit that calls main) you can reduce the size of your executable... at the cost of things like malloc, printf, time, and argv which won't work if the data structures they need aren't initialised.... -=> Bye <=- ---* Origin: Bushido does not mean what it sounds like. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.