-g?
Ranjan Bagchi
bagchi at eecs.umich.edu
Wed May 29 06:42:27 AEST 1991
Does anyone have any information about what exactly the -g
option on compilers does? I'm working with SPARC assembly, and
although I've examined the output of cc -S, I've only been partially
successful in duplicating the effect on my own assembly code -- the
debugger knows what line I'm on, but can't read the symbols in my
assembly code.
Obviously, I intend to automate the process...I've been
looking at gcc code, and have a half-written perl filter which does
the line marking, so if anyone has code or the information I need,
please help. I'll summarize to the net.
-rj
--
--------------------------------------------------------------------------------
Ranjan Bagchi - asleep...... | v,i,j,k,l,s,a[99];
bagchi at eecs.umich.edu | main() {
------------------------------- for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i<s,j+=(v=j<s&&(!k&&!!printf(2+"\n\n%c"-(!l<<!j)," #Q"[l^v?(l^j)&1:2])&&++l||a[i]<s&&v&&v-i+j&&v+i-j))&&!(l%=s),v||(i==j?a[i+=k]=0:++a[i])>=s*k&&++a[--i]) ;
} /* Osovlanski and Nissenbaum */
--------------------------------------------------------------------------------
More information about the Comp.unix.programmer
mailing list