Page 1 of 1

feature request

Posted: Sun Feb 10, 2008 9:35 pm
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

Re: feature request

Posted: Sun Feb 10, 2008 11:25 pm
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

Posted: Sun Feb 10, 2008 11:34 pm
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.

Re: feature request

Posted: Sun Feb 10, 2008 11:57 pm
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.

Posted: Tue Feb 12, 2008 10:22 pm
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.

Posted: Tue Feb 12, 2008 11:11 pm
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^

Posted: Tue Feb 12, 2008 11:49 pm
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. :)

Posted: Wed Feb 13, 2008 4:13 pm
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^''

Posted: Wed Feb 13, 2008 4:31 pm
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.

Posted: Thu Feb 14, 2008 12:16 pm
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)

Posted: Thu Feb 14, 2008 8:57 pm
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.