feature request
-
- New User
- Posts: 3
- Joined: Sun Feb 10, 2008 9:07 pm
- Location: Welwyn Garden City, Hertfordshire, England (in the United Kingdom)
feature request
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
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
Re: feature request
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.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
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
- tinman
- PureBasic Expert
- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Re: feature request
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/Irene wrote:apart from the fact that it is impossible to cross-compile for CISC on x86
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)
(WinXPhSP3 PB5.20b14)
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
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
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
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
https://reportcomplete.com <- School end of term reports system
You did not put me down tiger, but there is something you should quickly put down ^.^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. :)
I still believe that x86 is RISC though, and it stays like that ^o^''
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.
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.
-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Irene wrote:I still believe that x86 is RISC though, and it stays like that ^o^''



http://en.wikipedia.org/wiki/RISC
http://en.wikipedia.org/wiki/CISCWell known RISC families include DEC Alpha, ARC, ARM, AVR, MIPS, PA-RISC, Power Architecture (including PowerPC), and SPARC.
I just had too Irene...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.


http://en.wikipedia.org/wiki/Risk

(but this is really off topic)

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
you forgot:
there are Amiga-Emulators avaliable, you can even run Amiga-code on a PC.
the point is
so, if you "need" it, write your own PC-running Amiga compiler based on the Amiga-Code.
surely you can create a compiler, that creates an Amiga-exacutable binary file on a PC...Trond wrote:It doesn't technically matter what platform you are on. All files are just rows of bytes.
there are Amiga-Emulators avaliable, you can even run Amiga-code on a PC.
the point is
afaik you can access the source of the Amiga-Version of the PB-Compiler.Irene wrote:Besides, Frederic (founder of PureBasic) has already stated that AmigaOS will not be supported anymore
so, if you "need" it, write your own PC-running Amiga compiler based on the Amiga-Code.
oh... and have a nice day.