Re: calling functions generically
"Brett Bibby" <[email protected]>
| Newsgroups | gmane.games.devel.general |
|---|---|
| Organization | GameBrains |
| Message-ID | <[email protected]> |
Thanks Ignacio and Ivan-Assen for the links, both were helpful. I now have my Windows version working. I'm now trying to get the PS2 and GameCube up and running. I got the Application Binary Interface specs for both machines and implemented the PS2 version, but CodeWarrior generates different code than me in certain circumstances that I can't quite work out. Just curious, does anybody know if the PS2 has some variance to the normal MIPS ABI? Or CodeWarrior? I couldn't find anything in the PS2 doc or on ps2-pro so I'm not sure sure what to doexcept keep compiling test cases and looking for patterns. If anybody has any tips for this, please let me know. I don't think posting violates the Sony NDA because the doc is publicly available and the PS2 Linux kit includes all the doc too. Cheers, Brett ----- Original Message ----- From: "Ivan-Assen Ivanov" <[email protected]> To: <[email protected]> Sent: Sunday, February 15, 2004 3:49 AM Subject: RE: [GD-General] calling functions generically > > Sometimes the complier does a "pop ecx" on return and > > sometimes "mov dword ptr [ebp-0x8],eax" or a variant of that. > > Can someone help me to understand how to robustly handle > > this? I have done lots of assembly programming on other > > platforms, but this is my first look at Intel and the 16/32 > > bit stuff combined with different modes is really confusing for me. > > You might want to check out the roundup of calling conventions > Raymond Chen recently did on his blog: > > http://blogs.msdn.com/oldnewthing > > (dig a bit into the archives, they probably disappeared from > the front page) > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Gamedevlists-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Gamedevlists-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7