ObjC compiler for 6502, GBA Arm and others - WIP

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
ObjC compiler for 6502, GBA Arm and others - WIP
by on (#105172)
Hi,
I am working on a ObjC compiler for 6502 and arm systems.
The project is hosted (in svn) here : http://soft.vub.ac.be/svn-gen/objc-underground/

The directory of the compiler is libobjcgbarm.

Enjoy, more work later on.
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#105183)
Compiler ? Will it actually compile HLL code into 6502 asm, for real ? Will it be any more efficient than CC65 ?
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#105189)
An extra question, will it support 65816? CC65 works quite well for 6502, compared to available free 65816 compilers, would be cool to have another option.
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#105287)
Bregalad wrote:
Compiler ? Will it actually compile HLL code into 6502 asm, for real ? Will it be any more efficient than CC65 ?


The classes available in the beginning would be NSString, NSMutableArray and NSObject. The rest can be extended in the run time by shared objects.

It still needs a lot of work, but there's optimization planned, yes.

I plan to do 6502 for a start then move on to GBA and ARM. There will be a library system such as SmallTalk with widgets, you can have a look for it in libcarm for libc features, and other libs for graphics. I'm not sure however if this will be a feature for 6502.
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#105288)
Shiru wrote:
An extra question, will it support 65816? CC65 works quite well for 6502, compared to available free 65816 compilers, would be cool to have another option.


IIRC this is the super famicom/snes/super nintendo. I will have to look into that and might put it on my list.
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#107309)
The project is now hosted here :
http://code.google.com/p/libobjcgbarm/

There's a small libc for arm and a 6502 assembler target now. It needs a classlocator for runtime objC types still. You can compile it on MacOS X as it needs #import <Cocoa/Cocoa.h>.

A GNUStep objC port will follow.

There's some small ARM7 asm target. It needs optimization for all 32 registers also. Then the number system of return types must also be altered.

Enjoy,
B
Re: ObjC compiler for 6502, GBA Arm and others - WIP
by on (#113040)
Does it have a capability to omit the Objective-C runtime if you aren't using those features, so that only C runtime libraries are used?