English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 20 November 2004, 18:57   #1
Tolismlf
Junior Member
Tolismlf's Avatar
 
Join Date: Jul 2004
Location: Greece
Posts: 237
Programmers question

If i have the source code of a simple program that runs on PC would i be able to compile it and run it on Amiga? The program is written in C++. Please help.
What would i need to do that if it's possible?
Tolismlf is offline  
AdSense AdSense  
Old 20 November 2004, 19:07   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,661
If it has no GUI, no Windows stuff etc. then yes. However the only C++ compilers for AmigaOS are GCC and StormC. GCC is a real pain to install and StormC is commercial.

If the program was C only there would be some easy to use compilers for the Amiga, e.g. DiceC or VBCC.

http://gg.portail-e.com/geekgadgets/...68k/alpha/gcc/
http://www.kefren.be/modules.php?nam...download&cid=1
http://www.haage-partner.com/storm/sc_e.htm
http://de.aminet.net/aminetbin/find?dice-3
http://de.aminet.net/aminetbin/find?vbcc.lha
thomas is offline  
Old 20 November 2004, 19:23   #3
Tolismlf
Junior Member
Tolismlf's Avatar
 
Join Date: Jul 2004
Location: Greece
Posts: 237
What is a compiler's job? It makes a program "viewable" or lets maybe better say executable by the computer?
Tolismlf is offline  
Old 20 November 2004, 19:59   #4
Tolismlf
Junior Member
Tolismlf's Avatar
 
Join Date: Jul 2004
Location: Greece
Posts: 237
I 've just downloaded Storm C demo for Amiga and Dev C++ for Windows also some simple source codes, i guess i will try and experiment myself..
Tolismlf is offline  
Old 21 November 2004, 10:56   #5
Asterix
Registered User
 
Join Date: Nov 2003
Location: Germany
Age: 45
Posts: 32
Send a message via ICQ to Asterix
A compilers job is to translate your source code into a computer understandable code that could be executed. this has to be done before the computer can "use" your code.
Theres also some programming languages that do this "on the fly", like Amiga Basic. They use a so called "Interpreter" but are usually much slower than compiler-based languages.

good luck experimenting
Asterix is offline  
Old 21 November 2004, 13:40   #6
Tolismlf
Junior Member
Tolismlf's Avatar
 
Join Date: Jul 2004
Location: Greece
Posts: 237
Thanx very much. I am trying to use Storm C demo but i can't compile anything (Amiga sources). Instead i am using Dev C++ in Windows and it seems OK (using Windows source codes for compiling).
Tolismlf is offline  
Old 12 December 2004, 09:13   #7
HCF
Zone Friend
 
Join Date: Oct 2004
Location: here
Age: 48
Posts: 97
Quote:
Originally Posted by Tolismlf
Thanx very much. I am trying to use Storm C demo but i can't compile anything (Amiga sources). Instead i am using Dev C++ in Windows and it seems OK (using Windows source codes for compiling).
Well, you need to find compatible source code...Like on the PC, the Amiga suffers due to the differences between the compilers and of course then there is the architecture which is different from a PC, therefore Windows source code won't work on the Amiga and vice versa (not sure if that's what you're talking about ?!)
Try to download a good compiler, which might depend on the system you are using...You could even try Commodore's Lattice C Compiler that came on one disk if I remember correctly...Don't use a demo version if you can avoid it since a lot of the time features might be disabled that you'd expect to be there...Good luck !!
HCF is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Who are/were the best programmers? Codetapper Retrogaming General Discussion 62 27 August 2010 23:53
for ASM programmers meynaf Coders. General 29 05 August 2010 10:00
Game programmers wanted please! Pyromania News 1 22 December 2005 01:40
For Game Programmers... DaphydTheBard Retrogaming General Discussion 46 26 November 2005 17:01
Got Programmers? Ian Retrogaming General Discussion 1 18 October 2001 01:57

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.07098 seconds with 13 queries