+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 4
    Points: 1,326, Level: 8

    Join Date
    Sep 2010
    Location
    Thirukalukalukundra, Kanchipuram, Tamilnadu, India
    Posts
    77
    Helped
    3 / 3
    Points
    1,326
    Level
    8

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

    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?

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 251,342, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    43,773
    Helped
    13308 / 13308
    Points
    251,342
    Level
    100

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

    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.



--[[ ]]--