I want to set up a Apple IIGS simulator (not write one, use one).
Specifically, what I'm interested in is, ideally, looking at how C and Pascal were compiled on the 16b '816. I have no interest in compiling for the 6502, but for the 65816 with its banks and new addressing modes.
What I want to do is compile simple test cases, and see what machine code they generate. How they interact with the segment loaders, banking. How they structure their stack frames.
In the past, most compilers had an option to generate assembly code with the source code as comments.
As I understand it, there's an MPW C and Pascal, there's TML Pascal that became Complete Pascal, and theres an ORCA Pascal.
Do any of those system do what I want? Generate assembly code that I can view (I'm not interested in disassembling code)?
I don't know anything about the IIGS, so I'm curious what software base I need to start this. I don't know the different versions of DOS, ProDOS, etc.
I guess if I can get an MPW environment set up, that would be the ideal foundation.
Is that what I should be looking for? Any other suggestions?
If I had a fantasy, I wouldn't be doing any of this, and I'd just have someone friendly I could send code snippets to that could send back the assembly, and not have to set all this up at all.
But I don't know anyone that could do that.
Anyway, pointers appreciated.
Specifically, what I'm interested in is, ideally, looking at how C and Pascal were compiled on the 16b '816. I have no interest in compiling for the 6502, but for the 65816 with its banks and new addressing modes.
What I want to do is compile simple test cases, and see what machine code they generate. How they interact with the segment loaders, banking. How they structure their stack frames.
In the past, most compilers had an option to generate assembly code with the source code as comments.
As I understand it, there's an MPW C and Pascal, there's TML Pascal that became Complete Pascal, and theres an ORCA Pascal.
Do any of those system do what I want? Generate assembly code that I can view (I'm not interested in disassembling code)?
I don't know anything about the IIGS, so I'm curious what software base I need to start this. I don't know the different versions of DOS, ProDOS, etc.
I guess if I can get an MPW environment set up, that would be the ideal foundation.
Is that what I should be looking for? Any other suggestions?
If I had a fantasy, I wouldn't be doing any of this, and I'd just have someone friendly I could send code snippets to that could send back the assembly, and not have to set all this up at all.
But I don't know anyone that could do that.
Anyway, pointers appreciated.