Mail Archives: djgpp/1999/05/31/09:24:04
On Sun, 30 May 1999, Goodgulf wrote:
> 1. Compiling so I can debug with viewing code and assembly at once. (I
> think I need an object file and have to link it. Can
> someone help me here??
Compile and link your program with the -g switch, and then both GDB and
RHIDE will be able to show the source and assembly. I don't know what
do you mean by ``at once'', but if that means in the same display, then
FSDB (part of djdev202.zip) can do that; not sure about RHIDE.
> 2. What compiler options should I use for Pentium + systems?? I found a
> menu in RHIDE that had optimizations -- so I clicked them all.
The -O2 option is the best general-purpose optimization switch. Others
require elaborate procedure of finding the best combination for the given
program; see section 14.2 of the DJGPP FAQ list for more about this.
> 3. I could probably put more questions here, but I have not thought of
> them yet :) If you have any tips though, they would be greatly
> appreciated.
Try the FAQ before asking here, many questions are already annswered
there.
- Raw text -