Re: [GD-General] calling functions generically
Brought to you by:
vexxed72
From: Brett B. <res...@ga...> - 2004-02-15 03:02:25
|
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 -----=20 From: "Ivan-Assen Ivanov" <as...@ha...> To: <gam...@li...> 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=20 > > sometimes "mov dword ptr [ebp-0x8],eax" or a variant of that.=20 > > Can someone help me to understand how to robustly handle=20 > > this? I have done lots of assembly programming on other=20 > > platforms, but this is my first look at Intel and the 16/32=20 > > bit stuff combined with different modes is really confusing for me. >=20 > You might want to check out the roundup of calling conventions > Raymond Chen recently did on his blog: >=20 > http://blogs.msdn.com/oldnewthing >=20 > (dig a bit into the archives, they probably disappeared from > the front page) >=20 >=20 >=20 > ------------------------------------------------------- > 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=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D557 |