SDL and ASM

Hi Guys,

I used to code 68K assembler and was wondering if it is possible to mix
ASM (obviously not 68K) and SDL and still try to keep the whole thing
portable. I’m thinking of doing some calc intensive operations for GFX.
Is it just a waste of time?

Cheers,

-Lea.

Greetings,

Lea Anthony wrote:

Hi Guys,

I used to code 68K assembler and was wondering if it is possible to mix
ASM (obviously not 68K) and SDL and still try to keep the whole thing

It is possible to mix ASM with any C program. A more accurate response,
however, depends on what you mean by mixing “ASM and SDL”.

portable. I’m thinking of doing some calc intensive operations for GFX.

Your portability will be constrained by the same portability issues that
plague any ASM program. Generally, your program will be compilable on
the same architecture; how well it works across differing platforms on
that architecture is another matter.

Is it just a waste of time?

Again, it depends… specifically, on the functionality you would
implement in ASM for your program.

Cheers,

-Lea.

Regards,

Vee Schade
vchade at mindless.com

Hi Guys,

I used to code 68K assembler and was wondering if it is possible to mix
ASM (obviously not 68K) and SDL and still try to keep the whole thing
portable. I’m thinking of doing some calc intensive operations for GFX.
Is it just a waste of time?

ASM, by definition, is not portable beyond the chipset. If you want to have
your code work on something other than an Intel-chipset machine, then don’t
work with it. ASM code can cross between Linux and Windows moderately well, but
may require a bit of tinkering (especially if you’re interfacing with anything
OS-dependant). I recommend that you go for it, but be sure that you can
actually beat the compiler… with today’s somewhat more advanced compilers, it
does get harder. If you want to get really advanced, you can start supporting
MMX instructions, but at the very least you need to be good enough with it to
be able to fill up both the Pentium’s U and V pipes.

Go for it!

Nicholas, ASM programmer for 5 years and still lo

Lea Anthony wrote:

I used to code 68K assembler and was wondering if it is possible to mix
ASM (obviously not 68K) and SDL and still try to keep the whole thing
portable. I’m thinking of doing some calc intensive operations for GFX.
Is it just a waste of time?

Just a side comment as you mention the 68k chipset:
How about porting SDL for the good old Amiga? Would that be a waste of
time, or do you think people would have an interest in that? Is anyone
welcome to do the job if they can handle the task?
Would SDL by any chance compile under linux for the amy? I have only got
an old one myself, but there is an amy user group at my university, of
which some are very active in porting software for the Amiga (they are
currently working on a webbrowser with plugin-support for javascript and
VRML)…

Well, just a few thoughts…
Yrs. sincerely,
/morten bek