www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/08/12:57:12

Date: Mon, 8 Aug 94 08:10:52 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: wudavid AT ecf DOT toronto DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: A few simple Questions

>   First of all, is there documentation on the debugger?   I used the 
> Sally one and I think its great, however, I am not familiar with the
> command line options that can be used with it.

Go32's external debuggers cannot accept command-line parameters,
as there is no command line.  You invoke them like this:

	go32 -d <debugger> <program> <args>

If you typed in "go32 -d gdb -o blat", go32 will try to run a program
called "-o" and probably fail.

>   Another Q is when you specify -O4 what exactly does this do?  I 
> know that it is Optimization level 4, but the docs don't describe O's that
> high.  Is it about the same as O2? 

-O4 enables some expensive optimizations.  The gcc manual tells which
are which, but "cc1 -version -O4" will tell you what options are enabled.

> and then you call:     silly[32] = 5;
> Does this sub in the address of silly+32*4  as a number when the program
> is started, or does it have to do the addition on the fly?  

Use gcc -S to find out what the assembler is.  Results may differ
based on the optimization level.  In this example, it always computes
the address at compile time.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019