Writing a small test program - a bit off topic

McMullan, Jason jason.mcmullan at timesys.com
Tue May 10 06:04:57 EST 2005


On Mon, 2005-05-09 at 11:58 +0200, Peter Asemann wrote:
> I *hope* this mail isn't very off topic. In principle it probably is, 
> but I don't know a mailing list which is about writing test programs to 
> test processors in order to debug a hardware to get linux running. Plus, 
> I suppose there are people out there who could help me. So I hope you 
> won't stone me for this post.

assuming 'foo.c' is your program, and you want to run it at origin 0.

Step 1)	ppc8xx-linux-gcc -Dmain=_start -nostdlib foo.c -o foo

Step 2) ppc8xx-linux-objcopy foo -O binary foo.bin

Done!

	
-- 
Jason McMullan <jason.mcmullan at timesys.com>
TimeSys Corporation

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050509/dbea6b58/attachment.pgp 


More information about the Linuxppc-embedded mailing list