Targeting classic from OS4.1

2 posts / 0 new
Last post
nyteschayde
nyteschayde's picture
Offline
Last seen: 8 years 8 months ago
Joined: 2012-01-27 01:31
Targeting classic from OS4.1

If this is the wrong place to post, please simply let me know. I finally have OS4.1 Classic running on my Frakenstein A1200T. Since the environment there is so much more pleasant to code in than it is under OS3.x, I was wondering what the chances of being able to target Classic code from, say, CodeBench might be and how best to do it.

I plan on doing some OS4 coding as well but I'd like to be able to understand both environments.

Thanks

Hans
Hans's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: 2010-12-09 22:04
I have never attempted this

I have never attempted this myself, but it should be possible. Basically, you would install a 68K Amiga cross-compiler (or the actual 68K compiler), and the OS 3 header files, and then tell Codebench to use the 68K compiler for that project. Or, you would use a completely custom makefile. You might also have to explicitly tell the compiler where to find the OS3.x headers and linker-libs.

With GCC, the 68k compiler is called 68k-amigaos-gcc. Joachim Birging's AmigaOS 3 cross-compiler webpage should give you some hints as to how it's done, even though his cross-compilers are meant for Linux and Cygwin.

IMPORTANT: the "gcc" executable (or link) should always point to the native compiler, so make sure that you don't overwrite that when installing the cross-compiler/68k-compiler.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
http://keasigmadelta.co.nz/ - more of my software.

Log in or register to post comments