Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Cross GCC problem with profiling tools

Status
Not open for further replies.

nivas

Newbie level 5
Joined
Dec 5, 2003
Messages
9
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
90
Hi,

I am trying to build a cross compiler targeting a MIPS (or whatever) for a linux-i386 host. I have managed to build a working toolchain (gcc, binutils, newlib, gdb) but i have a problem with the profiling tools. Specifically, when i am compiling program with -pg to enable profiling a link error is produced because the linker finds an udefined reference to _mcount. A similar error is produced when i want to link a program compiled for gcov. I have build gprof correctly but this does not seem to change the situation.

Any help????

Thanks!!
 

Re: Cross GCC problem

gprog manual states:

The mcount routine, included in the profiling library, is responsible for
recording in an in-memory call graph table both its parent routine (the child)
and its parent’s parent.

This means that you will need cross profiling library too.
 

Re: Cross GCC problem

ISBN: 0072224053
Title: GCC: The Complete Reference
Author: Arthur Griffith
Publisher: McGraw-Hill Osborne Media
Publication Date: 2002-09-12
Number Of Pages: 647

Book review:

This is the definitive reference to the GCC open-source compiler. Get up-to-date information on the latest features--including compiling Java code, building applications using multiple languages, using the debugger, linking, libraries, and much more.

Download link:
**broken link removed**


0072224053.01.MZZZZZZZ.jpg
 

Re: Cross GCC problem

hey mmike

we got your point, OK??? i find the Griffith book useful, too.

the_penetrator©
 

Re: Cross GCC problem

use crosstool from dan kegel (google it)
it helps very much for beginners
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top