Welcome, Guest. Please login or register.

Author Topic: c++ for KS / WB 1.3  (Read 3739 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline daniel_sweTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2009
  • Posts: 51
    • Show only replies by daniel_swe
c++ for KS / WB 1.3
« on: March 08, 2009, 08:57:13 PM »
Hello!

Is there any developing tools (like the great amidevcpp) that can compile c++ code for the WB 1.3? /A500

The amidevcpp seems to just work with 3.1!
 

Offline Heinz

  • Full Member
  • ***
  • Join Date: Nov 2005
  • Posts: 154
    • Show only replies by Heinz
    • http://amidevcpp.amiga-world.de
Re: c++ for KS / WB 1.3
« Reply #1 on: March 08, 2009, 09:00:53 PM »
Quote

daniel_swe wrote:
Hello!

Is there any developing tools (like the great amidevcpp) that can compile c++ code for the WB 1.3? /A500

The amidevcpp seems to just work with 3.1!


Thats just a matter of the right NDK.
If you have one for OS 1.3, you can use the includes and linker libs to create programs for 1.3

BTW There is a new Version available.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: c++ for KS / WB 1.3
« Reply #2 on: March 09, 2009, 02:11:32 AM »
Most of the latest amiga.lib is compatible with 1.3, but check the autodocs. You just need to make sure that the images created by the linker use compatible hunk types and offsets, that you have proper startup code, and that you don't try to use library functions that don't exist in 1.3.

EDIT: You might also want to avoid the C/C++ libraries included with most m68k-amigaos-gcc distributions unless you know the functions work on 1.3. Obviously, you want to stay away from ixemul, too, and you won't have bsdsocket. When in doubt, use Amiga-specific library functions.
 

Offline daniel_sweTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2009
  • Posts: 51
    • Show only replies by daniel_swe
Re: c++ for KS / WB 1.3
« Reply #3 on: May 10, 2009, 01:26:22 AM »
Hello!

Thank you all for your answers, but i cant seem to find a compiler set for amidevc++ that suppors os1, it only says os3 on the config?

Is there any way to get amidevc++ to work with os1.3? I really love that development environment!

Hope that you can help me with this!

Thank you.

 

Offline giturox

  • Newbie
  • *
  • Join Date: May 2007
  • Posts: 15
    • Show only replies by giturox
AmiDevc for ks 1.3
« Reply #4 on: May 17, 2009, 11:16:45 AM »
I think you can use AmiDevc for ks 1.3, since Amiga (at least until 3.1) is backwards compatible. If you use functions and settings from Ks1.3 only, then your program should work from 1.3 up to and including 3.1. (I don't know the progress from 3.1 to 3.9 since I haven't received my Os3.9 from vesalia yet (after almost a month :-( ))

If you use other peoples source code, also make sure that they do not use any calls to newer functions.

The biggest changes seems to be in intuition and graphics library, whereas DOS and exec are pretty much the same for most applications.

best regards
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
c++ for KS / WB 1.3
« Reply #5 on: May 17, 2009, 01:42:42 PM »
Quote from: giturox;454522
The biggest changes seems to be in intuition and graphics library, whereas DOS and exec are pretty much the same for most applications.

Uhum. KS 1.3 dos.library is anemic compared to KS 2.0+ one. So as a rule of thumb unless if the application uses stdio it won't work with KS 1.3.

Even exec library has tons of new stuff, such as AllocVec/FreeVec which are used extensively in newer programs. It is quite unlikely you could take some even remotely modern amiga application and build it easily for KS 1.3.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
c++ for KS / WB 1.3
« Reply #6 on: May 17, 2009, 01:49:24 PM »
Quote from: Piru;454589
Uhum. KS 1.3 dos.library is anemic compared to KS 2.0+ one. So as a rule of thumb unless if the application uses stdio it won't work with KS 1.3.

Even exec library has tons of new stuff, such as AllocVec/FreeVec which are used extensively in newer programs. It is quite unlikely you could take some even remotely modern amiga application and build it easily for KS 1.3.


I have wondered about this previously. I was investigating the possibility of creating a link library for C that implements as much of the KS2.0 exec/dos library functionality as is reasonably feasible on top of 1.3. It would obviosuly have to provide replacement headers.

In the end, I didn't have any working 1.3 machines to test the idea.
int p; // A