Page 1 of 1

PureBasic for the ARM...

Posted: Wed Nov 16, 2005 11:07 am
by DoubleDutch
Fred: After v4 is ready, is it likely that a version for the ARM will be released? (hopefully for pocketpc/smartphone).

I know its been covered on the forum before, but the reason I'm now asking is because I just noticed this extension to fasm:

http://board.flatassembler.net/topic.php?t=4191

It probabily makes the job easier?

-Anthony

Posted: Wed Nov 16, 2005 1:58 pm
by Sebe
I'd like to have PB for ARM. Especially for this: http://www.gp2x.com/product/product.asp

Dual ARM Processors, 64 MB RAM, Linux and they use a slightly changed SDL as DevKit *starts2dreaming* :roll:

Posted: Wed Nov 16, 2005 7:55 pm
by va!n
i would like to have purebasic for...

- Atari 2600
- C64 / C128
- Texas Instruments Calculators
- For my toaster ;-)

looool


sorry ppl,
i think fred should concentrate to fix/finish actual OS/CPU versions of purebasic and adding some missing advanced features instead starting one more project...!? Dont you think so? :wink:

Re: PureBasic for the ARM...

Posted: Wed Nov 16, 2005 7:56 pm
by DarkDragon
DoubleDutch wrote:(hopefully for pocketpc/smartphone)
GBA!!! GBA!!! GBA Programming is very very easy in C, so Fred could do that.

@va!n: TI Calculators can be programmed already with the integrated basic. I did a ping pong game already.

Posted: Wed Nov 16, 2005 7:59 pm
by Trond
va!n wrote:i would like to have purebasic for...

- Atari 2600
- C64 / C128
- Texas Instruments Calculators
- For my toaster ;-)

looool


sorry ppl,
i think fred should concentrate to fix/finish actual OS/CPU versions of purebasic and adding some missing advanced features instead starting one more project...!? Dont you think so? :wink:
Yes definetely. People always wants more and more and more. As soon as he makes an ARM version people will start asking for a LEG, EYE or maybe even an EAR version. But since it's impossible for one person to maintain a good, bug-free program for all those processors all versions will quickly become ASS versions and we don't want that.

Posted: Wed Nov 16, 2005 8:06 pm
by DarkDragon
Trond wrote:
va!n wrote:i would like to have purebasic for...

- Atari 2600
- C64 / C128
- Texas Instruments Calculators
- For my toaster ;-)

looool


sorry ppl,
i think fred should concentrate to fix/finish actual OS/CPU versions of purebasic and adding some missing advanced features instead starting one more project...!? Dont you think so? :wink:
Yes definetely. People always wants more and more and more. As soon as he makes an ARM version people will start asking for a LEG, EYE or maybe even an EAR version. But since it's impossible for one person to maintain a good, bug-free program for all those processors all versions will quickly become ASS versions and we don't want that.
How about cloning Fred about 10 times? :roll:

Posted: Wed Nov 16, 2005 8:21 pm
by va!n
DarkDragon wrote: - Atari 2600
- C64 / C128
- Texas Instruments Calculators
- For my toaster ;-)

GBA!!! GBA!!! GBA Programming is very very easy in C, so Fred could do that.

@va!n: TI Calculators can be programmed already with the integrated basic. I did a ping pong game already.
...it was an ironic joke!
As Trond wrote...

Posted: Wed Nov 16, 2005 8:44 pm
by Nik
For marketing issues Fred could "port" PB to FreeBSD it's the same API as Linux and so on there even were rumors PB can run on Free BSD out of the Box 8) Or QNX these are probably things he can do in less than a week maybe even a day. (If GTK available^^ otherwise just API and Console would be fine(especially because these are Server Systems)) What would be even cooler is to port PB to Linux for PowerPC as all new libaries (because of the Mac OS X Version should be written in C it would be something like the Mac OS X Compiler with the Linux libs recompiled don't know if that's really that easy but it's definitley easier than porting to ARM.
bye Nik

Posted: Wed Nov 16, 2005 10:32 pm
by DoubleDutch
The only reason I suggested the ARM and pocketPC is that the OS calls are very similar to windows and as Fred has said in the past the internals to PB are processor independant - so he can switch to a new processor quite easily.

Posted: Wed Nov 16, 2005 11:44 pm
by Dare2
Trond wrote:.. people will start asking for a LEG, EYE or maybe even an EAR version. .. will quickly become ASS versions and we don't want that.
LOL :lol:

Posted: Tue Nov 22, 2005 4:47 am
by akee
Yes... I would support the PureBasic for ARM anytime... Then I can start writing application for my O2 XDA II... :)

Posted: Tue Nov 22, 2005 10:11 am
by DoubleDutch
Its the point that the OS is extremely similar - 99% of the OS calls are the same as windows (mainly its just some gadgets are missing) - that might make it easier to convert to than most people suspect.

Its the processor thats different (a BIG difference), but I'm sure that Fred has mentioned that the compiler internally generates code thats broadly processor independant.

Otherwise, if you want an easy way to program for PocketPC and Windows Mobile, then take a look at Pelles C - its really good.

Posted: Tue Nov 22, 2005 10:52 am
by PB
> i would like to have purebasic for...
> C64 / C128

That wouldn't be so hard, actually. Just a matter of writing some subroutines
to handle "windows" (eg. POKEing and PEEKing the display) and so on, and
then just convert the PureBasic source code to Basic for the C64/C128.

PureBasic:

Code: Select all

a$="MyFile"
DeleteFile(a$)
Converted to C64 Basic:

Code: Select all

10 a$="MyFile"
20 Gosub 1000 ; The line for the emulated "DeleteFile" command.
30 End
1000 Open 15,8,15,"s0:"+a$
1010 Close 15
1020 Return
My C64 Basic may be a bit off (it's been years!) but you get the point. ;)