feature request

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
andrewmann123
New User
New User
Posts: 3
Joined: Sun Feb 10, 2008 9:07 pm
Location: Welwyn Garden City, Hertfordshire, England (in the United Kingdom)

feature request

Post by andrewmann123 »

Windows Purebasic:

be able to create amiga program using purebasic for amiga source code using purebasic for windows.

Windows Purebasic:

able to use source code to lock for no writing (deletion\overwrite).
able to use source code to lock for no reading (opening\viewing).
and/or both
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Re: feature request

Post by Irene »

andrewmann123 wrote:Windows Purebasic:

be able to create amiga program using purebasic for amiga source code using purebasic for windows.

Windows Purebasic:

able to use source code to lock for no writing (deletion\overwrite).
able to use source code to lock for no reading (opening\viewing).
and/or both
Cross-compiling Amiga executables on PureBasic for Windows is impossible to my knowledge. The Motorola 68k processors are CISC, good luck on compiling for the CISC on x86. One possibility to create Amiga executables on a Windows PC would be to use WinUAE and run PureBasic for AmigaOS there.

Besides, Frederic (founder of PureBasic) has already stated that AmigaOS will not be supported anymore, so that is one reason more to deny this feature request (apart from the fact that it is impossible to cross-compile for CISC on x86).

Nothing against you, though. Cheers, Irene
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Cross-compiling Amiga executables on PureBasic for Windows is impossible to my knowledge. The Motorola 68k processors are CISC, good luck on compiling for the CISC on x86.
It doesn't technically matter what platform you are on. All files are just rows of bytes.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Re: feature request

Post by tinman »

Irene wrote:apart from the fact that it is impossible to cross-compile for CISC on x86
Perhaps your wording is wrong, but cross compiling is the process of creating an executable for one platform on another. So it is not just possible, it simply is. For example: http://vincent.riviere.free.fr/soft/m68k-atari-mint/
http://www.uclinux.org/pub/uClinux/ucli ... ols/gcc-3/

IIRC the reason Fred gave for not allowing cross compilation to the Amiga on previous occasions was that the code generated is for phxasm, and phxasm does not exist for Windows (and it would be more trouble to rewrite or replace it). But I cannot find the link now.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Irene: Not that it matters (it's actually got nothing to do with cross compiling), but both the 68k and the x86 are CISC.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Post by Irene »

You are jumping over this part of my sentence: to my knowledge ^.^
Apparently I have been misinformed and for a moment thought that x86 was RISC... This happens if you are a girl hahaha ^O^
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Re-reading my post it may appear that I was being a little offhand. I didn't mean to put you down in any way, my reply was badly written. Sorry. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Post by Irene »

DoubleDutch wrote:Re-reading my post it may appear that I was being a little offhand. I didn't mean to put you down in any way, my reply was badly written. Sorry. :)
You did not put me down tiger, but there is something you should quickly put down ^.^
I still believe that x86 is RISC though, and it stays like that ^o^''
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Let me resume how Purebasic is working.

Your source (.pb) -> purebasic "compiler" (adapted to platform) -> asm source (platform dependant .asm) -> assembler (fasm on windows) -> platform dependant machine language (x86 .o on windows) -> linker -> executable file (.exe on windows)

The pb source could be exactly the same on all platforms, but as some features are not on all platforms, there is some slight differences. This is why you have to adjust things to your needs.

Cross platform compilation could exists if PB was creating executables files for all platforms on all platforms. It is not impossible to do, but it would be a work that is not a prime necessity by now.

RISC and CISC have nothing to do there. x86 are not RISC. Years ago some RISC techniques were used to boost x86 perfs, but x86 is still a CISC, and it is fast.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Irene wrote:I still believe that x86 is RISC though, and it stays like that ^o^''
:lol: :lol: :lol:

http://en.wikipedia.org/wiki/RISC
Well known RISC families include DEC Alpha, ARC, ARM, AVR, MIPS, PA-RISC, Power Architecture (including PowerPC), and SPARC.
http://en.wikipedia.org/wiki/CISC
Examples of CISC processors are the System/360 (excluding the 'scientific' Model 44), VAX, PDP-11, Motorola 68000 family, and Intel x86 architecture based processors.
I just had too Irene... :wink: :wink: Hmmm - but maybe you mean "RISK"?!?
http://en.wikipedia.org/wiki/Risk

:twisted:

(but this is really off topic)
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

you forgot:
Trond wrote:It doesn't technically matter what platform you are on. All files are just rows of bytes.
surely you can create a compiler, that creates an Amiga-exacutable binary file on a PC...
there are Amiga-Emulators avaliable, you can even run Amiga-code on a PC.


the point is
Irene wrote:Besides, Frederic (founder of PureBasic) has already stated that AmigaOS will not be supported anymore
afaik you can access the source of the Amiga-Version of the PB-Compiler.
so, if you "need" it, write your own PC-running Amiga compiler based on the Amiga-Code.
oh... and have a nice day.
Post Reply