I've written some low level disk access routines in Assembly using
Orca/M. I would like to write the rest of the application in a higher
level language like C or Pascal. Does anyone have any tips on doing
this? I'm working on an Apple IIe so I can't use the Orca C or Pascal
compilers which I know allow fairly seamless cross linking with the
various languages.
I figure the trick is figuring out how to use someone else's linker to
link in my Orca-generated object files.
I've never heard of anyone doing this, so I'd say "good luck." :)
Sheppy
Not with Orca/M but HyperC, Aztec C and Kyan Pascal all have assemblers
and easily support what the OP wants.
Cheers,
Mike T
Interesting. Kyan doesn't use a linker at all; it just assembles the
compiler's output and makes static calls through the RTL's jump table.
The optional optimizer obviates the RTL and assembles library calls
in-line. The downside is that all symbols are global. Stack discipline
is a little abstruse, but the assembler syntax is commonplace. Here are
some examples:
<http://home.roadrunner.com/~jbmatthews/apple2.html>
<http://home.roadrunner.com/~jbmatthews/ssc.html>
<http://home.roadrunner.com/~jbmatthews/a2/calc.html>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
Perhaps this was a little ambitious. The Aztec C inline assembly
looks like the best method of adding the assembly parts I need, so
I'll pursue that route.
Thanks,
Eric
Sounds reasonable unless your assembly file is large. The lack of a
standard format for relocatable object files on the 8 bit Apple II's
means everyone has their own linker...
Making it possible to use ORCA, Merlin or EDASM modules in other
languages would be a project all to itself!
Matt