CompuServe Messages

sdb help

    19-Sep-90 14:20:04
Sb: #655-sdb help
Fm: Mike Spille/Manx 71545,1466
To: New member 73016,27
No, the proper format for BSS is: bss label,size Where 'label' is the name of the thing, and 'size' is the number of bytes it comprises. Debug files are created by the linker, ln, when you use the -g switch. It gets the debug info from the individual object modules, which in turn get information from control information embedded in the assembly source (which is placed there by the compiler). Look at the code generated with and without the -bs switch (by using the -at switch) and you'll see the control information in there. You would in essence have to manually place this control information in your assembly file, and then link with -g to get SDB to recognize it. I'd have to see your file to see what the problems were. In general, I think the approach of doing some C stuff followed by oodles of in-line assembly is not a good one, and you're bound to run into problems. You may want to compile a program like: main () { printf ("WHatever"); } with the -at switch, and then use that file as a 'template' for adding your assembly stuff to. If you're unfamiliar with merging C and assembly, this is probably your safest bet. -Mike