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.

how application libraries work in a embedded project and where are they written?

Status
Not open for further replies.

gopintj

Member level 4
Joined
Sep 1, 2010
Messages
77
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
Thirukalukalukundra, Kanchipuram, Tamilnadu, India
Activity points
1,953
Hi all.

I have one serious doubt about working nature of APIs. I involved in a project where i add an already compiled library file with my current project. Compilation and program executions are working fine. Now, my doubt is, in which program memory location does the library gets written?

My project is to establish communication between pic micro and an usb device. For this, i have written a main function which takes care of data transactions. And, i use a already built usb library file libusb.a. I am including this library file in my Project's Properties option(in include library folder).
Everything works fine. I can even get correct output. Only thing i would like to know is, how library file is added with my project source file after compilation?
 

how library file is added with my project source file after compilation?
Usually a library contains compiled relocatable code. It's linked into the project binary, not added to the source code.

You get information about linked code in the project linker map. The library source code might be available or not. You'll need it to trace working of the library code in source level debugging.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top