Quote:
Originally Posted by musashi5150
And failing that of course you could use a 68000 C emulator core (like Starscream) and feed that native code
|
Would I be able to clean up the code piece by piece that way? For example, if I have:
Code:
asm
asm
asm
asm
asm
I can't imagine it's easy to clean up a section in the middle like this:
But if it was converted into this:
Code:
spaghetti C
spaghetti C
spaghetti C
spaghetti C
spaghetti C
I could easily clean up code anywhere.
Quote:
Originally Posted by hitchhikr
|
That is not the best solution, as one would have to implement back-ends for all the wanted target platforms. If the custom assembler converts to C instead, the code can be compiled for any platform using the appropriate compiler. Interestingly, this is indeed what the code you linked to does, according to README:
Quote:
FrontVM2 has discarded the uae cpu core of hatari and instead compiles the
frontier 68k crap to native assembly language. This is done either by generating
a grotesquely huge C source file, or generating i386 asm directly.
|
I'll have a closer look, thanks for the heads-up.