Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to mix Orca/M Assembly with higher language

12 views
Skip to first unread message

EricN

unread,
Nov 16, 2009, 12:11:44 AM11/16/09
to
Hi Everyone,

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.

Sheppy

unread,
Nov 16, 2009, 1:30:48 AM11/16/09
to
On Nov 16, 12:11 am, EricN <e...@neilsonhart.com> wrote:
> Hi Everyone,
>
> 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've never heard of anyone doing this, so I'd say "good luck." :)

Sheppy

BluPhoenyx

unread,
Nov 16, 2009, 11:02:01 AM11/16/09
to Sheppy
To: 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

John B. Matthews

unread,
Nov 16, 2009, 12:23:17 PM11/16/09
to
In article <4B0171EE.2472....@a2central.com>,
"BluPhoenyx" <bluph...@a2central.com.remove-z8j-this> wrote:

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>

EricN

unread,
Nov 19, 2009, 2:05:00 PM11/19/09
to

> > > I've never heard of anyone doing this, so I'd say "good luck." :)

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

mdj

unread,
Nov 22, 2009, 6:49:16 PM11/22/09
to

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

0 new messages