Porting ALLEGRO to PocketPC
Hi all,
I have known allegro from the days of DOS programming, and used it with DJGPP. The other day while going through old code, i have come to some code made in Allegro. So the idea came to me, Why not port the Allegro library to PocketPc and take advantage of all the libraries,utilities and other source codes largely available in the NET.
I have alreay begin, and i was wandering if some one is willing to help me?
Regards,
Danyblue
This would seriously rock!
But no..............I can't help you

what's allegro?
Allegro is a graphics/sound library for DOS.. For making games. Thats all I know

Not just for dos but for Windows, Linux and BEOS. It have a lot of capabilities and there is a lot of free source code around the net that could help to accelerate the appearance of software for the PocketPC.
You can see some of the examples on the depot that exists
www.allegro.ccDanyblue
Interesting idea, how much work do you think this would require.
I assume just the system interface would need changing, then the other api's would work fine (more or less) in theory?
Are it's 3d capabilities any good?
I would definately be interested in working on this as I need to develop such an API, it would make more sense to port ALLEGRO with it's many features and cross platform possibilities.
Hi,
the capabilities of the library are very good, some functions are made in assembly which i think would be the most difficult task to port. I have some experience in Assembley but not with the major processor existing for pocket devices.
But most of them are implemented in C++ which could represent a more or less direct porting to the platform.
Regarding 3d there are some addons to the library to deal with it, and it would be addressed when i arrive there.
At this moment I am studying the code and the assembly for ARM and MIPS.I am trying also to get in contact the original creator of the library to get more information and some support. At this moment the library is just available for Win32,Linux and Beos.
regards,
Danyblue
Why to bother? EasyCE is there, it's pretty nice and it gets new functions all the time...
EasyCe is a very good library and i use it a lot, but sometimes it just get short and you must implement a lot a functions in order to be able to implement your Idea.
Allegro is a graphic library that already exist for years and that a have a huge base of knowledge and code that you can use on your own programs, you can take a look at
www.allegro.ccRegards,
Danyblue
danyblue:well, if you love it so much go and port it, we all are waiting for your results...
This is just what I am trying to do ...
Danyblue
I think perhaps the finer point here is that porting the Allegro library will allow the porting of other programs using it's libraries. Perhaps this would increase the number of available games to choose from as well...if interface problems are resolved in these new additions.
I am looking at the code, and most of the functions are very easy to port, there is some functions that must be adapted to the ones that exists in the C++ set that is used by evc++.
There are some ASM functions that are dealing with the physical access to the memory that is used for the disply, that i don't know which would be the best way to port:
- Implement them in native ARM and MIPS native asm..
- Used GAPI or other library like Jacco´s Easyce to implement it.
The first one would be much more performant, although I don't know at this moment how it could be integrated with the Pocketpc Operating System...
The second alternative would be much easier, but the drawback would be on performance...
Does any one have some experience in dealing with situations like the first point (Evc++ - Native ASM - Pocketpc)?
Regards,
Danyblue
helo,
i think that you go to the first option. speed is important, especialy if you think about porting the code that already exists to allegro.
I don't know much about assembley bute i can try help you.
Chiao
Gianni
Gianni:
It is the option that i would like to implement. But I don't know if the level of complexity wouldn't be to much, which would enlarge so much the development effort need to port the library.
In the other end, it is the best option to have a very high performant library that could take full advantage of the hardware.
I remember from the old times where every game that was made was in a large percentage implemented in ASM.
Regarding the ASM, information about Mips and ARM assembley is very scarse on Internet. I've been trying to find some information about arm on
www.arm.com but there is not very much information regarding Assembley.
Regards,
Danyblue
digby knows a lot about arm assembly, ask him any question about it, and he can most likely answer it

Hi,
And how can i contact him? Does he have an email, or should i ask the question through the forum?
Danyblue
I Have asked a question regarding ASM for the pocketpc to Digby directly through messages, which I think violates the spirit of this forums, so i am putting here the answer that replied.
"
ARM assembly language programming Date posted: 12/16/01 at 23:00:49
The easiest way to get started is to get the C compiler to generate an assembly language source file from your C code as it compiles. Notice the calling convention and how the compiler passes function args in registers, how it returns from functions, etc.
There are ARM Reference documents available for free downloading at
http://www.arm.com.
I highly recommend the "ARM Architecture Reference Manual, Second Edition" (ISBN 0-201-73719-1).
The ARM assembler that is provided with eVC is armasm.exe.
In the future, please post your questions in the Developer Discussion forum here so that others can benefit. "
Hi,
I know allegro from the PC old times and it is really a rocking library. I have come to the recently ( i have bought a Jornada 568, 2 weeks ago) and I am trying to initiate my self to game programming. I have seen some other libraries, easyce comes a little bit short since it lacks the major graphic primitives.
Allegro would be super cool. Can you include me in the project? Do you have set up any site? How many people are particpating in this?
CU
Jammer
Jammering Internet In a BOX
Hellop,
I have work before with Allegro and it seems to be a huge work to do. Is it feasible?? Isn't too much work, and especially wouldn't the resulting library be to big to work correctly with the new environment?
Regarding the Physical access to the display memory, how do you plan to implement it? In Allegro, using GAPI? Or do you plan to implement yourself somekind of access? Do you know how to do it?? Or does someones who want to participate in this forum know how to implement this?
If you have this answers than I would be able to contribute to the porting working on the highest level functions.
bye,
Edward Riches
Edward:
You are right in the affirmations, it is really a very big job, but I am doing it the best I can. At this moment I am working alone and going through ASM for the ARM and the MIPS, thanks to some information and tips pointed to me by Digby.
I am just a the beginning, and I hope not to loose my motivation in doing that.
When I have started this thread I was thinking that it would be a very good oportunity to bring a lot more software to the PocketPc scene, but unfornutly I think that Allegro doesn't have a lot of fans in this environment. Let's hope I can help changing things.
I will not setup anysite for the moment because I don't have any visible work to share, and since nobody is interrested in contribute at this moment, it would be a completely lost of time to do that.
If you want to help me, I would be welcomed.
Danyblue
hi all,
the status from the porting that i am trying to do is the following:
- I Can compile almost 75% of the code the implements the library using pseudo functions in order to avoid the problem of the low level ASM Functions.
- I am testing the possibility of using standard GAPI functions as a subsitute of the ASM. With this method I am able to perform some basic tests that show me that the code is beeing correctly ported.
- I am setting up a WebSite to be used as File repository, and it will be finished I will put there all the code, hoping some one decides to join me in my effort.
- I am making a very slow progress with the learning of the ARM Asm, I am using some of the tricks explained by Digby, so let's hope that I will finally be able to do something useful.
Danyblue
Heh, I posted this suggestion on the allegro.cc message board, but no one seemed very interested. I think it's a damn fine idea. One thing, I'm pretty sure that allegro has the ability to emulate all of the inline assembly it uses when being used on certain platforms. Using some of this stuff might be a time saver, and would help get a usable version out sooner.
ZOG:
I have tried to contact people from the Allegro developpment team some time ago trying to find out if it would be interresting to them and if I could get some support from them, but i didn't any answer, so I am working alone.
I don't know but some time ago any idea of developping something that could bring a huge amount of fresh code to the platafor, would bring a tremendous petitions of participation. But instead now, it is a more passive attitude, of waiting for others to do the job and then used it. Are we seeing the end of collaborative working in the Net?
Danyblue