From R58616 at freescale.com Thu Feb 3 11:08:35 2011 From: R58616 at freescale.com (Frank Juergen-R58616) Date: Thu, 3 Feb 2011 11:08:35 +0000 Subject: getrusage Message-ID: <9FE7ECE94344704EA6B6623A3D3A329F105EA9@039-SN1MPN1-001.039d.mgd.msft.net> Seems the function times calls the function getrusage, but this function isn't defined anywhere. Any hints what I have to do ? And for what this function is used. I run the code on an system without any OS. c:/program files/codesourcery/sourceryglite/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/lib\libc.a(lib_a-times.o): In function `times': times.c:(.text+0x20): undefined reference to `getrusage' saludos Juergen Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos at codesourcery.com Thu Feb 3 16:07:54 2011 From: carlos at codesourcery.com (Carlos O'Donell) Date: Thu, 03 Feb 2011 11:07:54 -0500 Subject: [power-gnu-discuss] getrusage In-Reply-To: <9FE7ECE94344704EA6B6623A3D3A329F105EA9@039-SN1MPN1-001.039d.mgd.msft.net> References: <9FE7ECE94344704EA6B6623A3D3A329F105EA9@039-SN1MPN1-001.039d.mgd.msft.net> Message-ID: <4D4AD2DA.3020201@codesourcery.com> On 2/3/2011 6:08 AM, Frank Juergen-R58616 wrote: > Seems the function times calls the function getrusage, but this > function isn?t defined anywhere. Any hints what I have to do ? And for > what this function is used. > > I run the code on an system without any OS. > c:/program > files/codesourcery/sourceryglite/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/lib\libc.a(lib_a-times.o): > In function `times': > > times.c:(.text+0x20): undefined reference to `getrusage' You need to define a getrusage function in your code which does whatever is needed for your bare-metal application. It's up to you to decide how to count time (given that you have no OS). Cheers, Carlos. -- Carlos O'Donell Mentor Graphics / CodeSourcery carlos at codesourcery.com +1 (650) 331-3385 x716 From tramu at cdotb.ernet.in Mon Feb 21 04:20:26 2011 From: tramu at cdotb.ernet.in (Thulasi Ramu J) Date: Mon, 21 Feb 2011 09:50:26 +0530 Subject: gcc cross compiler for MPC8260 Message-ID: <4D61E80A.8040100@cdotb.ernet.in> Hi, We want to use gcc to cross compile 'C Source code' to a target board(with freescale PowerPC-MPC8260). The Source code will bring up the target(using assembly language), and run the code written in 'C' to test the board functionality. No OS(embedded OS) is involded in this source code. We want to use gcc to cross compile this code to PowerPC - MPC8260. If we want to use gcc c cross compiler for MPC8260, what is procedure to be followed in windows? Please help me in using gcc as a cross compiler for PowerPC in windows OS. Any references to documents/application notes/links would be appreciated.