ARM compiler

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

ARM compiler

Post by Thorium »

This is more a question than a request.

Is it planned to add a ARM architecture compiler to PB? Maybe ARM + Linux.
I am not asking for when it will come, just asking if it's planned or if it's out of the question.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ARM compiler

Post by Fred »

nothing really is 'out of question', but for now it's not planned.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: ARM compiler

Post by Seymour Clufley »

I hope that one day PB can compile for mobile devices - iPhone etc.

But it may be better to wait for that market to calm down and a "winner" OS to emerge for it.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: ARM compiler

Post by Thorium »

Seymour Clufley wrote:I hope that one day PB can compile for mobile devices - iPhone etc.

But it may be better to wait for that market to calm down and a "winner" OS to emerge for it.
I guess it's never wrong to compile for linux.
And iPhone is unrealistic as it can only be compiled on MacOS, because of code signing with XCode and have to be coded in Objective C.

Other BASIC projects for the iPhone are allready cancelt, like this:
When will NS Basic for iPhone ship?

NS Basic for iPhone cannot be released due to the terms of Apple's SDK. In particular, the following wording affects the product: 3.3.2 An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple's Published APIs and built-in interpreter(s).
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: ARM compiler

Post by Seymour Clufley »

An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple's Published APIs and built-in interpreter(s).
Does that affect PureBasic?

Either way, what do you yourself want ARM compilation for?
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: ARM compiler

Post by Thorium »

Seymour Clufley wrote:
An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple's Published APIs and built-in interpreter(s).
Does that affect PureBasic?
Not directly it's just a example. PB would have to convert it's PB code to Objective C code instead of compiling it to ASM code. Thats just one of the many restrictions made by Apple. You are not allowed to compile directly for the iPhone. You have to send your app to Apple for approval. You cant just release your stuff. Well you can for jailbroken iPhones but thats not what most people aim for if they want to develop software for the iPhone.
Seymour Clufley wrote: Either way, what do you yourself want ARM compilation for?
To develop software for portable devices. iPhone would be nice if Apple wouldnt be such &*$.
Personaly i would use it for the Pandora gaming handheld.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: ARM compiler

Post by Seymour Clufley »

Right, I didn't know all that stuff about Apple. I can understand that they want to keep their platform safe and all that but it seems it would be a nightmare for developers.

The reason I'm interested in PB for portable devices is it seems like the way "things are going". There's so much you can do with a mobile phone nowadays. With so many computing tasks (like writing a document) being possible online, there's going to come a time when having a PC at home is pointless, since you can't take it around with you. I don't mean for everyone, but for most computer users. For example, people who just use a computer to go on the Internet: their mobile phone does that, so what's their home PC for?

In that context, why would a programmer want to confine himself to desktop programming when there's this big, exploding market in mobile devices? Of course there are other languages that people can use to make, say, mobile phone apps - it'd just be nice if PB was one of them.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: ARM compiler

Post by blueznl »

One approach would be to write a cross compiler. It's a lot of work, but these things were done quite often in the past :-)
Last edited by blueznl on Sat Sep 04, 2010 11:58 am, edited 1 time in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: ARM compiler

Post by Thorium »

blueznl wrote:One approach would be to write a cross compiler. It's a lot of work, but these things were done in the past quite often :-)
Yes, thats something PB is definitly missing at the moment.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ARM compiler

Post by DoubleDutch »

Apple have now relaxed the rules.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply