Cross compiling

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Cross compiling

Post by Kaisen2100 »

May be in the future ... we can have cross compiling ... compile in windows an generate the standalone for linux mac and amiga ... i think it is little bit harder ... but i would be great :)
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Cross compiling

Post by DarkDragon »

Kaisen2100 wrote:May be in the future ... we can have cross compiling ... compile in windows an generate the standalone for linux mac and amiga ... i think it is little bit harder ... but i would be great :)
Already discussed, please use the forum search.
bye,
Daniel
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

But it's great to post one more time, maybe Fred will add it on his todo list then ;)
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

Yes ...exists another topic in the forum about cross compiling ... but another is not bad :P ...

In the past 3 days i was looking in the internet for a cross platform programming language ... i found 3 that i consider "good"

Omnis Studio ... http://www.omnis.net/products/studio/index.html
Runtime Revolution ... http://revolution.runrev.com/ ... and ...
REAL Basic ... http://www.realsoftware.com/realbasic/indepth/

Omnis Studio have her own Language (something like a 4th generation language [4GL] ) ... for make a program with Omnis Studio you should learn it from scratch (it is not hard to learn because a 4GL instruction is something like this:

Code: Select all

put "sometext" into field "My Field"
or

Code: Select all

add "this object" to "this object container" and set "this object color" to black
this is not real code but it is very like the 4GL code that uses Runtime Revolution and Omnis Studio ... and i think ...
this way of coding its more naturally (for those who speak english only) ... but you need to write more to "words" to make a valid instruction ...

REAL Basic does not use that "4GL" ... and uses the BASIC language ...
wich is more simply and esay (and fast) to learn ... anyone that knows a few about programming can program with any BASIC language.

After looking and looking for hours and hours ... and days ... i concluded

that for real crossplatform programming and crosscompiling ... REAL Basic is the BEST laguage (not so much expensive for the standard version [wich only compile for windows] [99 Dollars ... 81 Euros] and a few expensive for the Pro version [wich compiles for windows, mac and linux] [400 Dollars ... 325 Euros])

REAL Basic right now only runs in Windows and Mac ... REAL Basic 2005 Will run in Windows, Mac and Linux ... buying now a Pro License of REAL Basic gives you a license key for the V 5.5.5 ... and a License for REAL Basic 2005 when it ships ... good promotional price for a great programming language.

I am not a REAL Basic user and i do not have money (right now ... but may be in the future i will have) to buy a Pro License ... but for fast cross platform programming and compiling ... REAL Basic is the BEST ...

i have the demo version for windows and i tested with a simple loop

Code: Select all

for i = 0 to 10000000 (10 million :P)
; do nothing
next i
and it takes 750 milliseconds to complete it (to slow if you compare with PureBasic [ only 16 msecs]) ... but its the price to pay if you want really stand alone cross platform programming.

And concluded another think ...

If you want FAST ... VERY FAST stand alone programs that runs on Amiga, Linux, Windows and Mac (very soon) and dont want to spend so much money ... then you need ... you MUST use Pure Basic ... Feel the Power!!!
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

by the way ... FRED ... i want to ask you ... some day we will have the cross compiling function? do you have plans to implement it in Pure Basic. Have you ever think about it? ... i think it could convert Pure Basic in a "killer App" in cross platform programming
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Kaisen: how about posting a reply in the old topic and not in a new one O_o? And how about editing your last post instead of answering again?
And another good crossplatform language(which is also used by many many many many many ... companies) is Java ;) . Not Cross Platformcompiling but Runtime bytecode :P . IIRC OO.org uses it.

But I would also love to see it in PB. CrossPlatform compiling seems to be very good to me.
bye,
Daniel
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

openoffice? oo is written in c++ ;)
however some functions needs java but its possible to run without it.
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

DarkDragon wrote:Kaisen: how about posting a reply in the old topic and not in a new one O_o? And how about editing your last post instead of answering again?
And another good crossplatform language(which is also used by many many many many many ... companies) is Java ;) . Not Cross Platformcompiling but Runtime bytecode :P . IIRC OO.org uses it.

But I would also love to see it in PB. CrossPlatform compiling seems to be very good to me.

Just because i want to post here :P ... and do not want in the old topic ... :) ... :P ... and Java do not create standalone executables :( ... it is the unique bad thing about Java
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

thefool wrote:openoffice? oo is written in c++ ;)
however some functions needs java but its possible to run without it.
Ohh :oops: but it looks like a Java tool for me ^^ it loads very slow, m$ office is faster.

> ... and Java do not create standalone executables ...
as I said. "Not Cross Platformcompiling but Runtime bytecode"
bye,
Daniel
GreenGiant
Enthusiast
Enthusiast
Posts: 252
Joined: Fri Feb 20, 2004 5:43 pm

Post by GreenGiant »

Surely this would be a bit of a waste of time for Fred. Nobody would surely release a program for a platform without doing some kind of checking to see that it worked. You'd need a computer of that platform just to check things were working, and then you may aswell compile on that machine. And were there any problems after release, how could you offer support if you didn't have access to a computer running that OS to test it? You can't really check it using emulators either, they're never going to be quite the same.
Kaisen2100
Enthusiast
Enthusiast
Posts: 121
Joined: Fri May 28, 2004 4:16 pm
Location: Madeira Island, Portugal
Contact:

Post by Kaisen2100 »

GreenGiant wrote:Surely this would be a bit of a waste of time for Fred. Nobody would surely release a program for a platform without doing some kind of checking to see that it worked. You'd need a computer of that platform just to check things were working, and then you may aswell compile on that machine. And were there any problems after release, how could you offer support if you didn't have access to a computer running that OS to test it? You can't really check it using emulators either, they're never going to be quite the same.
Yes ... you're right ... but for people like me ... that owns a Macihtosh G3 IBook, and a P 4 2,6 with Mandriva Linux 2005 and Windows XP Pro ... it is agreat feature to cross compile ... and after that test the program in all the 3 platforms :D

I know it will consume so much Fred's time ... for me will be ok when the Mac beta becomes stable ... to compile my programs in the 3 platforms ... :) Pure Basic is a great language ... Really great, and it is always growing ... and may be a day we will have the crosscompiling function. By the moment ... i love Pure Basic like it is now.

Who have money can buy REAL Basic ... who wants make money should use Pure Basic :) ... does not exist anything in the world like Pure Basic ...

nothing produces Fast Code like Pure Basic, notihing produces little size programs like Pure Basic, nothing produces Real Standalone executables like Pure Basic ... Feel the Power
PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/
Post Reply