Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: Cross Platform Programming  (Read 1898 times)

0 Members and 1 Guest are viewing this topic.

Offline Crumb

Re: Cross Platform Programming
« Reply #30 on: May 15, 2013, 12:40:25 AM »

I would like to bring more programmers to the Amiga. The ability to bring code from other platforms seems to be a must these days.

Doing proper ports takes much more effort but the result is much more pleasant for both users and developers. I prefer quality rather than quantity. Typing "make" and porting cli linux tools to produce hundreds of ported cli tools that use ixemul doesn't help to make our platform interesting. Imagine that Fab never did a proper OWB*MorphOS*port or that Chris never did a proper Netsurf OS4 port... even if we could run SDL versions I highly doubt it would appeal users much.

It's better to invest more time porting correctly libraries making 1 proper shared library than producing a handful of static libs. As an user it's simply better and as a coder it presents advantages:
-if a library has a bug you can fix it without recompiling&relinking your main app.
-allows using different compilers:*this library may only compile with GCC4.x but another one perhaps can be compiled with GCC2.95 as GCC3 generates buggy code in some situations. You could even create a library using AmigaE for example and call it from C and the opposite too.
-allows more collaboration (using static libs could produce problems: what do you use? ixemul, libnix, clib2...?)
-allows using native library versions if available even if your app is 68k only

For amiga "portability" there are SDI headers, these are used in various amiga projects and make easier making native versions.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)

Offline ferrellsl

Re: Cross Platform Programming
« Reply #31 on: May 15, 2013, 12:15:46 PM »
The best environment for cross platform development for all Amigas including classics, NG, AROS and MorphOS is by using C/C++ and AmiDevCpp.  You can get it here:  http://amidevcpp.amiga-world.de/index.php?HR_LANG=english

Offline OlafS3

Re: Cross Platform Programming
« Reply #32 on: May 15, 2013, 01:05:55 PM »
What software?

And it all depends on what you want to do. If you want to do crossplatform-development (that here would mean covering all "amigian" platforms) you will (propably) have to use C or (perhaps) PortablE or Hollywood. If you want to develop 68k software for 68k environments you have different additional choices.

Offline ChaosLord

Re: Cross Platform Programming
« Reply #33 on: May 15, 2013, 10:38:37 PM »
Quote from: novacoder;734851
  The most common example is good on c, which in theory is protable by just a recompile (not actually true of course but it's a good story).


In particular, writing structures out to disk in a multiplatform compatible way is quite a spectacular pain when using C.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA

Offline trekiej

Re: Cross Platform Programming
« Reply #34 on: May 15, 2013, 10:59:17 PM »
Is it not possible to use your own functions to call other functions in SDL or OpenGL?
Then change the header file that contains your functions for different platforms.
Amiga 2000 Forever :)
Welcome to the Planar System.