English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 05 March 2013, 22:43   #1
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Question Sas/c 6.50 map file creation

Hi,

I am trying to compile something with sas/c and would like a map file for debugging purposes.. I just don't seem to have any luck - no file is created.

My question then is: Are the options from SCOPTIONS always read by sc, possibly afterwards being overridden by cmd line options to sc or how does that work? It seems to pick up include directories ok from SCOPTIONS..

in SCOPTIONS, the following mapping options are specified:
MAP
MAPHUNK
MAPLIB
MAPSYMBOLS
MAPFILE=t:out.map

I'm invoking sc through an smakefile, btw..

cheers..
hooverphonique is offline  
Old 06 March 2013, 13:37   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by hooverphonique View Post
I am trying to compile something with sas/c and would like a map file for debugging purposes.. I just don't seem to have any luck - no file is created.

My question then is: Are the options from SCOPTIONS always read by sc, possibly afterwards being overridden by cmd line options to sc or how does that work? It seems to pick up include directories ok from SCOPTIONS..
I'm not sure about SCOPTIONS either, and I don't have a recent SAS/C version to verify it. But my guess would be that SCOPTIONS are just passed to the "sc" frontend.

So you could test whether the MAP option works when calling "sc" manually from the command line. If not, it will likely also not work with SCOPTIONS.

Then you can still call slink separately and pass your MAP options there.
phx is offline  
Old 06 March 2013, 14:30   #3
RedskullDC
Digital Corruption
 
RedskullDC's Avatar
 
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
Hi Hoover,
Quote:
Originally Posted by hooverphonique View Post
Hi,

I am trying to compile something with sas/c and would like a map file for debugging purposes.. I just don't seem to have any luck - no file is created.

My question then is: Are the options from SCOPTIONS always read by sc, possibly afterwards being overridden by cmd line options to sc or how does that work? It seems to pick up include directories ok from SCOPTIONS..

in SCOPTIONS, the following mapping options are specified:
MAP
MAPHUNK
MAPLIB
MAPSYMBOLS
MAPFILE=tut.map

I'm invoking sc through an smakefile, btw..

cheers..
Been a while since I looked at SAS/C, so don't take this as gospel...

If invoked from the command line, "sc" will ignore the SCOPTIONS file.

"MAP" will only produce output if you set MAPFILE=filename, select one or more of the map types (hunk,lib etc. as you have above), *AND* choose to "link" as well.

MAP is ignored if "link" is not on the command line, since default is "nolink".

Hope this helps?

Cheers,
Red

p.s. Did you have any luck with your " How does one reverse engineer Amiga app? " problem?
RedskullDC is offline  
Old 06 March 2013, 19:45   #4
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Ahh, I see... the mapping options are of course for linker, not the compiler

SCOPTIONS is perhaps used by smake to set the $SCOPTS variable then.. but my smakefile only has $SCOPTS on the compile steps, not on the link step..

gcc has the ability to create "listing" files.. I don't suppose there's anything similar for sas/c?

@redskull: that thread wasn't started by me
hooverphonique is offline  
Old 07 March 2013, 22:32   #5
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Enable the Hlist, Ilist, and Mlist options. These options cause the compiler to
print, to the listing file, the complete header and macros processed by the
preprocessor
something like that? if so, i found info in this manual.
in version 6.58 there is starter_project/SCoptions. a GUI where you can configure default settings. MAP is also mentioned there.

Last edited by emufan; 07 March 2013 at 22:39.
emufan is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive image file creation failed john1979 support.WinUAE 3 02 February 2013 13:17
Creation of a 5 1/4 diskette =) Turran Nostalgia & memories 5 18 December 2012 23:30
Amiga Creation s2325 Nostalgia & memories 4 22 February 2010 12:20
Sensible Soccer, pitch1.map pitch2.map problem. Whitesnake project.WHDLoad 0 31 May 2006 14:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07998 seconds with 13 queries