Welcome, Guest. Please login or register.

Author Topic: Cross Platform Programming  (Read 2544 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline trekiejTopic starter

Re: Cross Platform Programming
« Reply #29 from previous page: May 14, 2013, 08:04:20 PM »
Would Amigans be willing to buy software for a dollar or 99 cents?
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: Cross Platform Programming
« Reply #30 on: May 15, 2013, 12:40:25 AM »
@trekiej:

Quote
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

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
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).

hehehehe
+9999999

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 trekiejTopic starter

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.