forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Late binding with PSPSDK

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
biermana



Joined: 27 Jun 2005
Posts: 12

PostPosted: Tue Jul 05, 2005 12:28 am    Post subject: Late binding with PSPSDK Reply with quote

What is the recommended best practice for late binding (e.g. pspnet libraries) while using the PSPSDK? I could include a startup.s for each project, but based on the example Makefiles that come with the SDK, it would seem the PSPSDK encourages using a "shared" startup.s.

I ask this because I feel our community will evolve as we begin to consistently use the same methods/tools/patterns for developing homebrew.

In reading through the code of some examples that have been posted ( nem's helloword, the wifi example, the httpd example, etc.), we're all doing things a bit differently.

Any thoughts?
Back to top
View user's profile Send private message
madc



Joined: 27 Jun 2005
Posts: 17
Location: Nanking,China

PostPosted: Tue Jul 05, 2005 12:34 am    Post subject: Reply with quote

I ported PspPet's code to SDK based. But the synchronization is still a issue. So I haven't call the linked functions from user mode.
Back to top
View user's profile Send private message Visit poster's website
biermana



Joined: 27 Jun 2005
Posts: 12

PostPosted: Tue Jul 05, 2005 1:02 am    Post subject: Reply with quote

madc wrote:
I ported PspPet's code to SDK based. But the synchronization is still a issue. So I haven't call the linked functions from user mode.


Madc,

Is the work you've done refactoring PspPet's code to be PSPSDK-based posted somewhere for download/viewing? Or are you referring the the sample code which can be pulled from subversion?
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Jul 05, 2005 1:08 am    Post subject: Re: Late binding with PSPSDK Reply with quote

biermana wrote:
What is the recommended best practice for late binding (e.g. pspnet libraries) while using the PSPSDK? I could include a startup.s for each project, but based on the example Makefiles that come with the SDK, it would seem the PSPSDK encourages using a "shared" startup.s.


Create a seperate stub .s that's has all late imports. Call them libpspfoo_weak.a or something (the plan for kernel libraries was libpspfoo_kernel.a). Put them up somewhere, we'll add them to PSPSDK, and get you svn access.

biermana wrote:
I ask this because I feel our community will evolve as we begin to consistently use the same methods/tools/patterns for developing homebrew.


That's the aim of PSPSDK - and to be frank, I think we've superceded nem's stuff and any derivatives quite nicely. If there's something that doesn't suit you in PSPSDK, let us know and submit a patch and we'll work with you to make it better.
Back to top
View user's profile Send private message
biermana



Joined: 27 Jun 2005
Posts: 12

PostPosted: Tue Jul 05, 2005 1:15 am    Post subject: Reply with quote

Sounds good mrbrown. Thanks for your reply/guidance.

The PSPSDK is excellent, and defintely evolving quickly.

I'd personally like to pass along my thanks/appreciation to all the folks doing such a nice job on the PSPSDK.
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Tue Jul 05, 2005 2:12 am    Post subject: Reply with quote

FWIW: I still believe we are missing something obvious here (ie. the patching should be automatic, *in theory*). The first version of the patch code is rather slimy (hard coded addresses etc). Do what you wish with it, but hopefully it will go away if/when we find the right bits to set.

FWIW2: I have a slightly more elegant solution for system traps (ie. like STUB_FUNC but for calling "ForSystem" entries - using direct calls). Great for system hackery (all thanks to the Kernel memory access module flag)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group