Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: kvasarnomad on February 16, 2004, 08:18:04 PM

Title: best c++ compiler?!?!?!?!?! : (
Post by: kvasarnomad on February 16, 2004, 08:18:04 PM
which is the best c++ compiler that will run on OS 3.1
and it must be small because i must transfer it via floppy
IDE is not nessesary.

[edit] i have no fast mem just a original A1200 with hd

[edit] i have only got one reply, have i said something wrong now again :-( :boohoo:
Title: Re: best c++ compiler
Post by: Kronos on February 16, 2004, 08:33:38 PM
020+2MB ?

Doubt that any C++-compiler will work on thise beast  ......
Atleast not with non-trivial sources.
Title: Re: best c++ compiler?!?!?!?!?! : (
Post by: Karlos on February 17, 2004, 12:48:03 AM
Quote

kvasarnomad wrote:
which is the best c++ compiler that will run on OS 3.1
and it must be small because i must transfer it via floppy
IDE is not nessesary.

[edit] i have no fast mem just a original A1200 with hd

[edit] i have only got one reply, have i said something wrong now again :-( :boohoo:


Compiling programs in C/C++ is a non trivial process for any reasonably sized project, fairly large amounts of memory can be used to build tables, optimise code etc. One project I worked on peaked at about 20Mb of memory useage (all optimisations enabled) to compile a program under 200K in size.

As for transferring stuff via floppy, don't worry too much. You can use ZIP on a PC to create a multivolume archive. Copy each chunk to your amiga hard disk, renaming them in numerical order as you go (winzip just calls them all filename.zip, so manually rename these filename.0, filename.1 ... etc.) You then use the amigados join command to concatenate them thus:

join filename.0 filename.1 ... as filename.zip

You can then use a good amigados 'unzip' utility. Most complain about proper multipart archives being unsupported but they usually compensate for it. Despite the warnings, this method has never failed me.

Anyway, back to your specific problem. I'm not sure there are any C++ compilers available for amigaos that will work comfortably in such a low memory configuration. Your best bet would be something like running storm c from a shell (ie skipping the IDE).

Even if you can get it configured to work in the bare 2MB, I fear you may commit suicide waiting for any reasonably sized source to compile :-(

If you want to use such applications, I strongly urge an accelerator with a fat chunk of ram as your next upgrade.

-edit-

Even if you don't want to use C++ anymore after this, still get an accelerator and ram anyway. The difference it makes to a bare A1200 is quite astonishing ;-)
Title: Re: best c++ compiler ok
Post by: kvasarnomad on February 17, 2004, 11:48:24 AM
ok then i just have to wait untill i buy the Blizzard 1240 with scsi-kit IV i been thinking to buy
will the B1240 + 32Mb fast(maybe more) be enought for c++ or scould i try to find a B 1260(havent seen one yet).
Title: Re: best c++ compiler?!?!?!?!?! : (
Post by: whabang on February 17, 2004, 01:39:56 PM
To transfer large ammount of files to the miggy via floppy, then I'd recomend RAR. There is a version of UnRAR for amiga. It supports multi-part archives natively, and provides much better compression than ZIP.
Title: Re: best c++ compiler ok
Post by: Kronos on February 17, 2004, 02:23:52 PM
/me was useing StormC1.x with A2630 (32MHz), and a combined memory of 7mb (1 Chip, 2 16-Bit-Fast, 4 32-Bit-Fast)....

Thats probraly the absolute minimum for doing anything above hello_world in C++.

32MB and 040 will work o.k., but more is allways better (must admit that I never had an 040).
Title: Re: best c++ compiler ok
Post by: Noster on February 21, 2004, 08:52:40 PM
Hi,

I've always used -- and still using -- SAS/C (currently version 6.58).
Back the days I've used AmigaOS 3.1 and only had have 5 MB (1MB chip- and 4 MB fastram) in my A3000T (68030/25MHz that days), I've had no problems in building any project, there was so much memory free during compiling, I've thought about speeding up compilation by copying the compiler and all include-files into ram-disk.

I know that you can install SAS/C on floppy disks and so, I think, SAS/C will run on your machine (and I think it is still the best C-compiler available for Amiga, even if C++ is compiled by translating it to C by a preprocessor). The greater problem will be to get it. You should have a look at eBay.

Noster