Page 1 of 1
Posted: Wed Apr 23, 2003 2:59 am
by BackupUser
Restored from previous forum. Originally posted by Amiga5k.
Hello all, especially Fred ...
I am in the process of creating an IDE for PB and I was wondering what the process was for compiling from within the IDE. I tried to read the source, but it's difficult sometimes to get a handle on what's going on with someone else's code (It's clean code, yes. But many separate files scattered in different includes.)
Anyways, what are the important steps one must take to properly call the compiler and\or debugger from their custom IDE?
Thanks in advance, Fred (and everyone

)
Russell
***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
Posted: Wed Apr 23, 2003 7:39 am
by BackupUser
Restored from previous forum. Originally posted by fred.
For a start, you can call the compiler with the command line, it would be enough. Else, you will have to send some message to the compiler process (Look in the main loop in the editor source).
Fred - AlphaSND
Posted: Wed Apr 23, 2003 11:43 am
by BackupUser
Restored from previous forum. Originally posted by freak.
If the Editor Source is too big, you can also hav a look at my IETool Source.
It also fully interfaces with the PB compiler.
http://www.reelmediaproductions.com/pb/apps/IETool.zip
Basically, the Compiler and the Editor send Messages, to communicate, and all
extra information on these Messages (like Error messages when compiling and such) are
put in a file called 'Communication.msg'.
Here is where you should look at in my code:
Code: Select all
Start_PBCompiler
Here is where te compiler is started with the needed arguments, also the Windows message is registered.
CompilerWindow Procedure
Here i wait for the Compiler-ready message, and send back the Editor-ready message.
The PB Editor does this in the main loop, and i would suggest, that you do that also, it was
just handy for my IETool to do it that way :)
Loop_Menu
Here is where a compilation is started also creating executables and such is there.
Loop_Compiler
Here is where the Messages the compiler sends are processed.
My IETool uses different loops for the different tasks, but for an IDE it would be best, to process/do
all that stuff in the Main loop.
(If you have some more questions on my code, or on the Compiler stuff, feel free to write me a mail)
Hope this helps...
Timo
http://freak.coolfreepages.com/
Posted: Wed Apr 23, 2003 7:03 pm
by BackupUser
Restored from previous forum. Originally posted by Amiga5k.
Thanks, Freak and Fred (sounds like a cartoon show - "It's time for the Freak and Fred Show!"
Russell
***Commodore 64 - Over one million cycles per second, 16 vibrant colors, 3 incredible audio channels and 38,911 Basic Bytes Free! Who could ask for anything more?***
Posted: Wed Apr 23, 2003 10:34 pm
by BackupUser
Restored from previous forum. Originally posted by freak.

:):)
http://freak.coolfreepages.com/