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
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
Join the Kea Campus - upgrade your skills; support my work; enjoy the Amiga corner.
https://keasigmadelta.com/ - see more of my work