Welcome, Guest. Please login or register.

Author Topic: Programming compiler  (Read 1702 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Programming compiler
« on: May 16, 2006, 09:47:25 PM »
just as you can download Borland C++ / Dev C++ - is there a similar download for the amiga. where i can install the compiler using WB3.0 ??
******************
 

Offline InTheSand

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 1766
    • Show only replies by InTheSand
    • http://www.ali.geek.nz
Re: Programming compiler
« Reply #1 on: May 16, 2006, 09:54:41 PM »
Hi, you could check out DICE...

 - Ali

EDIT: oops, looks like this is source only, requiring a compiler to compile the compiler! D'oh! :-)
 

Offline amigakit

Re: Programming compiler
« Reply #2 on: May 16, 2006, 09:55:12 PM »
There is StormC v4 with a full IDE.
www.AmigaKit.com - Amiga Reseller | Manufacturer | Developer

New Products  --   Customer Help & Support -- @amigakit
 

Offline amigakit

Re: Programming compiler
« Reply #3 on: May 16, 2006, 09:55:30 PM »
Without an IDE is the free GCC
www.AmigaKit.com - Amiga Reseller | Manufacturer | Developer

New Products  --   Customer Help & Support -- @amigakit
 

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Re: Programming compiler
« Reply #4 on: May 16, 2006, 10:45:04 PM »
hey, thanks. but my specs:

A1200 w/ HDD (boots to WB3.0) w/ DF0 and DF1

PCMCIA also

so i was thinking download a free compiler in the format which i can transfer to amiga and then install on amiga... ?

thanks
******************
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Programming compiler
« Reply #5 on: May 16, 2006, 10:55:38 PM »
@3246251196

You will have hard time with such stock setup. If you want to do programming still, I'd recommend WinUAE, at least until your system has some more "oomph". You could even make it so that the compile directory is shared and mounted with smbfs, then you could do testing using the A1200.

EDIT: Oops, W/ HDD, read W/O ;-)

It is possible though, I used to have special compressed devenv (SAS/C, though I think it was Lattice/C back then. I think it was before SAS institute bought it) on 3 floppies on my A500. It took months to set everything up so I woudln't need to swap disks all the time, though. It was a bit slow on 68000 and floppies only.

Oh that was fun... ;-)
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Programming compiler
« Reply #6 on: May 16, 2006, 11:32:45 PM »
@Piru

Yeah, I read that as without HDD and was about to post when I checked again.

As you say, a stock machine has lots of limitations when it comes to compiling anything non trivial. A hard drive is a must, as is a decent amount of RAM and preferably a faster CPU.
int p; // A
 

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Re: Programming compiler
« Reply #7 on: May 17, 2006, 12:01:28 AM »
well i use my PC when i do C++. i just always wanted to do it on Amiga is all
******************
 

Offline dillinger

  • Jr. Member
  • **
  • Join Date: Apr 2005
  • Posts: 99
    • Show only replies by dillinger
Re: Programming compiler
« Reply #8 on: May 17, 2006, 02:10:41 AM »
1. Install Cygwin on your PC (http://www.cygwin.com/)

2. Install Zerohour's PC-based GCC Amiga cross-compiler. (http://http://www.zerohero.se/cross/os3.html)

3. Install WinUAE on your PC. Share a directory on your PC between WinUAE and your "real Amiga" using Samba and your  PCMCIA Ethernet card

4. Create your C/C++ sources using one of the many freely available code editors on the PC. (I use NotePad++ http://notepad-plus.sourceforge.net/uk/site.htm, but the choice is wide and varied)

5. Save your sources from the editor to the shared WinUAE folder.

6. Compile those sources with lightening fast speed using your Cygwin based Bash interface and the cross-compiler you installed in step #2. You might have to learn some "Makefile" basics, beforehand and create yourself a project Makefile. (depends how complex your project is, simple compiles will not need a Makefile)

7. Test the binary the cross-compiler outputs with your WinUAE set-up (installed in step #3). If the code crashes WinUAE...no problem! You can reset WinUAE and be back in action within a matter of seconds.

8. Once you are happy with the binary tests you have done in WinUAE, switch over to your "Real" Amiga and execute the exact same binary from the shared PC Samba directory for the “final test”.

This is the best _modern_ pipeline when it comes to compiling Amiga apps. Sure, you can setup a native Amiga environment, but you will find it clumsy and slow, particularly on an unexpanded a1200 compiling C++ sources. Crashes will also drive you around the bend when developing on a native Amiga, whereas GURUs in an instance of WinUAE running on a PC are a mere "irritant" :)
My Sys Specs:-
A1200 Desktop^Blizzard 060 (Phase5) with mk-IV SCSI Kit (8.5ROM)^128MB 60ns RAM^Int. 30GB HD^Ext. SCSI DVD drive & 9GB SCSI HD^Int. DCE ScanDoubler/FF^ MicroVitec 1701 Msync monitor^PCMCIA LAN Linked^AmigaOS 3.9+BlizKick+PFS3
 

Offline Thomas

Re: Programming compiler
« Reply #9 on: May 17, 2006, 07:11:23 AM »

Dice C can be downloaded from Aminet: http://www.aminet.net/package.php?package=dev/c/dice-3.16.lha

It's a nice small and fast compiler for beginners. It runs on an unexpanded Kick 1.3 machine, so it should be happy on an A1200.

Bye,
Thomas

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Re: Programming compiler
« Reply #10 on: May 21, 2006, 07:03:53 PM »
any c++ compilers out there, guys?
******************
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Programming compiler
« Reply #11 on: May 21, 2006, 07:15:55 PM »
g++ (gnu c++)

That will NOT run on stock A1200.
 

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Re: Programming compiler
« Reply #12 on: May 21, 2006, 07:26:22 PM »
hmmm. NOT STOCK => what specs?
******************
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2280
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Programming compiler
« Reply #13 on: May 21, 2006, 09:18:33 PM »
You'll need at least 4Megs of Fast RAM if not more, and a hard drive.
 

Offline 3246251196Topic starter

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 334
    • Show only replies by 3246251196
Re: Programming compiler
« Reply #14 on: May 21, 2006, 09:54:14 PM »
okay well i will have 4Mb FM tomorrow.


anyway, another question:

What is AmigaBasic? (i have version 1.2) its on my WB1.2 Disks (Extras)
******************