QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Homebrew and Hacks Discussion
The above video goes away if you are a member and logged in, so log in now!

Help please, converting a "C" Source to a .bin?

This is a discussion on Help please, converting a "C" Source to a .bin? within the PSP Homebrew and Hacks Discussion forums, part of the PSP Development, Hacks, and Homebrew category; As title says how do I go about doing this? Many people have C programs coded and then have h.bin ...

Reply
 
LinkBack Thread Tools
Old 09-25-2005, 10:46 AM   #1
 

 
Join Date: Sep 2005
Location: N. Ireland
Posts: 434
Trader Feedback: 0
Default Help please, converting a "C" Source to a .bin?

As title says how do I go about doing this? Many people have C programs coded and then have h.bin to run on 2.0 but how do i make "h.bin" from my C programs?

Thanks
PhilMc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-25-2005, 11:16 AM   #2
 
Join Date: Sep 2005
Posts: 26
Trader Feedback: 0
Default

Quote:
Originally Posted by 1003K
As title says how do I go about doing this? Many people have C programs coded and then have h.bin to run on 2.0 but how do i make "h.bin" from my C programs?

Thanks
Compile it?
phalix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-25-2005, 11:18 AM   #3
 

 
Join Date: Sep 2005
Location: N. Ireland
Posts: 434
Trader Feedback: 0
Default

Ahhh ok Can I do this is codewarrior?

Will it reduce all the headers and .c files to one .bin?
PhilMc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-25-2005, 05:15 PM   #4

Rock Star
 

 
Join Date: Aug 2005
Location: CT| FW: 4.01 M33-2
Posts: 11,844
Trader Feedback: 0
Default

any want to say how i can do this and give a link to a program i can use to do it
__________________

TeamOverload is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-25-2005, 05:37 PM   #5
 
Aenea's Avatar
 
Join Date: Aug 2005
Location: Netherlands
Posts: 184
Trader Feedback: 0
Default

Quote:
Originally Posted by 1003K
As title says how do I go about doing this? Many people have C programs coded and then have h.bin to run on 2.0 but how do i make "h.bin" from my C programs?
Have a look at the source, and especially the makefile, of helloworld_psp2_v1 It's on the front page...
Aenea is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-25-2005, 06:05 PM   #6
 
liquidplasma6's Avatar
 
Join Date: May 2005
Location: Cinnamon Swirlz
Posts: 424
Trader Feedback: 0
Default

Quote:
Originally Posted by 1003K
Ahhh ok Can I do this is codewarrior?

Will it reduce all the headers and .c files to one .bin?
oooo c0d3w4rr10r is illegal, its only allowed for professional psp developers, will i have to report you
liquidplasma6 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 12:16 PM   #7

Rock Star
 

 
Join Date: Aug 2005
Location: CT| FW: 4.01 M33-2
Posts: 11,844
Trader Feedback: 0
Default

bump..any1 kno a program we can use to compile/convert or w.e
__________________

TeamOverload is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 12:44 PM   #8
 
satansgutter's Avatar
 
Join Date: Jun 2005
Location: London, UK
Posts: 169
Trader Feedback: 0
Default

yup i have one called Dev-CPP, by bloodshed, its a free C and C++ complier.

http://www.bloodshed.net/devcpp.html
satansgutter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 12:48 PM   #9
 
seanraf's Avatar
 
Join Date: Jul 2005
Posts: 190
Trader Feedback: 0
Default

Quote:
Originally Posted by liquidplasma6
oooo c0d3w4rr10r is illegal, its only allowed for professional psp developers, will i have to report you
Well, to pirate the official PSP dev kit from Codewarrior is illegal, but codewarrior makes other stuff besides the PSP SDK, in fact a version of their software is available to the public legally. I am pretty sure since .bin is a standard extention, the standard Codewarrior will be able to compile it. I am pretty sure they have a demo up to download. Just keep it under 64k
seanraf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 01:26 PM   #10

Rock Star
 

 
Join Date: Aug 2005
Location: CT| FW: 4.01 M33-2
Posts: 11,844
Trader Feedback: 0
Default

i wonder what the people who made hello world used. i get a compiling error if i try to compile their code again(unmodded). i have tried 3 programs.
__________________

TeamOverload is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 02:37 PM   #11
 
Aenea's Avatar
 
Join Date: Aug 2005
Location: Netherlands
Posts: 184
Trader Feedback: 0
Default

Quote:
Originally Posted by seanraf
I am pretty sure since .bin is a standard extention, the standard Codewarrior will be able to compile it. I am pretty sure they have a demo up to download. Just keep it under 64k
.bin is a known extension, it stands for binary, in this case it just means it's nothing more than just the MIPS instructions in raw format (it can mean many things, an image in raw format, a video in raw format, etc.). Use the (unofficial) PSP SDK tools to compile your program...

Just compile your program to an elf (called program.elf for instance) and do this:
Code:
psp-strip -s program.elf
psp-objcopy -O binary program.elf h.bin
__________________
"Choose again" - Aenea
Aenea is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-26-2005, 02:50 PM   #12
 
seanraf's Avatar
 
Join Date: Jul 2005
Posts: 190
Trader Feedback: 0
Default

I know .bin is a know extension, I was just explaining that Codewarrior isn't ilegal.
seanraf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
bin , converting , source

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 01:26 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us