delorie.com/archives/browse.cgi | search |
Date: | Wed, 20 Sep 2000 23:48:02 +0530 |
Message-Id: | <200009201818.XAA01038@midpec.com> |
From: | Prashant TR <tr AT midpec DOT com> |
To: | jcwilk2000 AT yahoo DOT fr |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <8q9qmv$su0$1@nnrp1.deja.com> (jcwilk2000@yahoo.fr) |
Subject: | Re: fast asm coding with DJGPP |
References: | <8q9qmv$su0$1 AT nnrp1 DOT deja DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
| From: jcwilk2000 AT yahoo DOT fr | Date: Wed, 20 Sep 2000 07:58:30 GMT | DJ-Gateway: from newsgroup comp.os.msdos.djgpp | | There was a very efficient way to optimize a code with assembler with | the WATCOM compiler, because it had a disassembler which was able to | produce compilable and readable asm code. So you just had to : | - write the code in C | - optimize the C code | - compile the C code to obtain a .obj file | - disassemble the .obj file | - optimize the .asm obtained | | It was fast and easy because you didn't have to write the asm code from | scratch. | | I didn't managed to do the same thing with the DJGPP compiler. Has | anyone already done this ? It's simpler with DJGPP. There's no need to produce obj and then get back to asm. Directly from C to asm :-). Here's how. gcc -S test.c -o test.S -- Prashant TR <tr AT midpec DOT com> Web: http://www.midpec.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |