Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!stanford.edu!msi.umn.edu!umeecs!zip!bagchi From: bagchi@eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.unix.programmer Subject: -g? Message-ID: Date: 28 May 91 20:42:27 GMT Sender: usenet@zip.eecs.umich.edu (Mr. News) Organization: Recreational Creationists, Inc. Lines: 24 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@eecs.umich.edu | main() { ------------------------------- for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i=s*k&&++a[--i]) ; } /* Osovlanski and Nissenbaum */ --------------------------------------------------------------------------------