Restored from previous forum. Originally posted by preacher.
* Instance of application ( AppInstance.l=PBInstance() )
* Posibility to create PureLibraries from PB
That's about it really.
PS Thanks for a great compiler Fred.
[Preacher]
Some of my wishes
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Mr.Skunk.
Hi,
For the appinstance you can use this :
AppInstance.l=getmodulehandle_(0)
About creating libraries using PB. It's difficult to do, and for the moment it's not possible at all for a simple reason...
Librariy Obj is merged with Library descriptor in a single file. Obj is extracted by the PBCompiler at compil time and then immediatly deleted.
So it's not possible to compile again the ASM source.
But i don't know if creating a library using directly PB is a very good idea. I worked on this project with Ricardo, and even if PB write interesting and optimised ASM code, it's far from a well hand written code with human optimisations in length and execution time (and it's normal).
For PB speed and compacity, i think we have to make libraries with ASM. (but it's only my opinion...What do you think about this???)
For writing a library like, using PB, you can compile your code as Resident.
Fred, if you can Add an option not to delete the Obj files, it would be great to allow compiling ASM sources made with the /COMMENTED option.
Hope it helps...
Mr Skunk
Mr Skunk's PureBasic Web Page
http://www.skunknet.fr.st
Edited by - mr.skunk on 05 October 2001 06:01:17
Hi,
For the appinstance you can use this :
AppInstance.l=getmodulehandle_(0)
About creating libraries using PB. It's difficult to do, and for the moment it's not possible at all for a simple reason...
Librariy Obj is merged with Library descriptor in a single file. Obj is extracted by the PBCompiler at compil time and then immediatly deleted.
So it's not possible to compile again the ASM source.
But i don't know if creating a library using directly PB is a very good idea. I worked on this project with Ricardo, and even if PB write interesting and optimised ASM code, it's far from a well hand written code with human optimisations in length and execution time (and it's normal).
For PB speed and compacity, i think we have to make libraries with ASM. (but it's only my opinion...What do you think about this???)
For writing a library like, using PB, you can compile your code as Resident.
Fred, if you can Add an option not to delete the Obj files, it would be great to allow compiling ASM sources made with the /COMMENTED option.
Hope it helps...
Mr Skunk
Mr Skunk's PureBasic Web Page
http://www.skunknet.fr.st
Edited by - mr.skunk on 05 October 2001 06:01:17
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by preacher.
>For the appinstance you can use this :
>AppInstance.l=getmodulehandle_(0)
Works great thx...
>About creating libraries using PB. It's difficult to do, and for the moment >it's not possible at all for a simple reason...
>Librariy Obj is merged with Library descriptor in a single file. Obj is >extracted by the PBCompiler at compil time and then immediatly deleted.
>So it's not possible to compile again the ASM source.
>But i don't know if creating a library using directly PB is a very good idea. I >worked on this project with Ricardo, and even if PB write interesting and >optimised ASM code, it's far from a well hand written code with human >optimisations in length and execution time (and it's normal).
>For PB speed and compacity, i think we have to make libraries with ASM. (but >it's only my opinion...What do you think about this???)
Well asm is ofcourse the most compact and faster solution, but it would be nice to have PB compile libraries. Mainly for non-speed thing like custom gadgets etc... But it is only a suggestion.
>For writing a library like, using PB, you can compile your code as Resident.
Resident is not documented very well, I have no clue how to use the feature you are talking about...
>Fred, if you can Add an option not to delete the Obj files, it would be great >to allow compiling ASM sources made with the /COMMENTED option.
[Preacher]
>For the appinstance you can use this :
>AppInstance.l=getmodulehandle_(0)
Works great thx...
>About creating libraries using PB. It's difficult to do, and for the moment >it's not possible at all for a simple reason...
>Librariy Obj is merged with Library descriptor in a single file. Obj is >extracted by the PBCompiler at compil time and then immediatly deleted.
>So it's not possible to compile again the ASM source.
>But i don't know if creating a library using directly PB is a very good idea. I >worked on this project with Ricardo, and even if PB write interesting and >optimised ASM code, it's far from a well hand written code with human >optimisations in length and execution time (and it's normal).
>For PB speed and compacity, i think we have to make libraries with ASM. (but >it's only my opinion...What do you think about this???)
Well asm is ofcourse the most compact and faster solution, but it would be nice to have PB compile libraries. Mainly for non-speed thing like custom gadgets etc... But it is only a suggestion.
>For writing a library like, using PB, you can compile your code as Resident.
Resident is not documented very well, I have no clue how to use the feature you are talking about...
>Fred, if you can Add an option not to delete the Obj files, it would be great >to allow compiling ASM sources made with the /COMMENTED option.
[Preacher]
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by theogott.
>> Fred, if you can Add an option not to delete the Obj files, it would be great to allow compiling ASM sources made with the /COMMENTED option.
**********
The last compiled ASM-Listing should be left and accessible.
Also ... I think it would be great, to have a "TAB" like in MS-Frontpage,
where I can directly switch into the (once compiled) ASM-Code and even
overtake and replace pieces directly into the source.
*************************
The best time to do things is now !
>> Fred, if you can Add an option not to delete the Obj files, it would be great to allow compiling ASM sources made with the /COMMENTED option.
**********
The last compiled ASM-Listing should be left and accessible.
Also ... I think it would be great, to have a "TAB" like in MS-Frontpage,
where I can directly switch into the (once compiled) ASM-Code and even
overtake and replace pieces directly into the source.
*************************
The best time to do things is now !