01 December 2008, 05:07 | #1 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,130
|
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. |
01 December 2008, 13:18 | #3 |
Registered User
Join Date: Jul 2005
Location: Australia
Age: 47
Posts: 666
|
I don't think Lattice is capable of producing assembly listings.
|
20 December 2008, 23:23 | #4 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,130
|
cheers i'll leech dice-c and give it a go.
|
21 December 2008, 05:57 | #5 |
Digital Corruption
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
|
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 |
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 |
|
|