English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 01 December 2008, 05:07   #1
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
Lattice C Compiler Help

Hi.

With NorthC it is possible to compile in stages so that your .C programme gets converted into Asm before it finally gets linked.

This is quite useful as you can then take the source code and throw it into your own programme, with out having to dissassemble the final object and getting rid of all that other C Startup code.

I tried dumping all the includes so I could compile it with NorthC but seemed to have problem getting it working.

I was wondering if this is possible with Lattice so I can convert the RKM sources in to Assembler, as I don't have the Lattice C Manual.

Yes I know the RKM sources are in assembler on aminet, but you still have to use the includes and I don't like the way he's coded.

i.e
dosbase = 0
gfxbase = dosbase+4
.. = gfxbase+4

Thank you.
redblade is offline  
Old 01 December 2008, 11:35   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,000
Don't know Lattice. But I know how Dice C does it:

dcc -a source.c -o source.asm
thomas is offline  
Old 01 December 2008, 13:18   #3
OddbOd
Registered User
 
Join Date: Jul 2005
Location: Australia
Age: 46
Posts: 666
I don't think Lattice is capable of producing assembly listings.
OddbOd is offline  
Old 20 December 2008, 23:23   #4
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
cheers i'll leech dice-c and give it a go.
redblade is offline  
Old 21 December 2008, 05:57   #5
RedskullDC
Digital Corruption
 
RedskullDC's Avatar
 
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
Quote:
Originally Posted by OddbOd View Post
I don't think Lattice is capable of producing assembly listings.
Assume 6.58 is being used?

From page 93 of the SAS/C 6.0 manual (Vol#1):

DisAssemble=filename
tells the compiler to disassemble the code as it is generated and to
send the disassembly to the file you specify. The default value is
nodisassemble. The minimum acceptable abbreviation is disasm.
To send the disassembly to the Shell, use disasm=*.

----
This is an option you pass to SC.

To avoid having the default startup code linked in, simply choose the nolink option for sc.

Hope this helps.

Red
RedskullDC 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
Lattice C Compiler (v3.03) Sparticle request.Apps 24 29 September 2023 08:19
Lattice c caver99 request.Apps 5 18 August 2011 16:39
Lattice c thige request.Apps 7 05 October 2009 21:59
Lattice C stareagle request.Apps 2 01 April 2006 12:18
Lattice C 5.10 Rochabian request.Apps 6 24 November 2005 08:36

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 07:46.

Top

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