UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 45312

EDK - What do the different libc.a files mean?

Description

I found several libc.a files in the EDK install directory. What do they all mean?

microblaze-xilinx-elf\lib\libc.a
microblaze-xilinx-elf\lib\bs\libc.a
microblaze-xilinx-elf\lib\le\libc.a
microblaze-xilinx-elf\lib\m\libc.a
microblaze-xilinx-elf\lib\bs\le\libc.a
microblaze-xilinx-elf\lib\bs\m\libc.a
microblaze-xilinx-elf\lib\m\le\libc.a
microblaze-xilinx-elf\lib\bs\m\le\libc.a

Solution

The options are based on varied options for MicroBlaze, particularly barrel shifting, multiplier, and little endian. Depending on what settings you use, libgen will call the appropriate libc. In short, the following will be called:

microblaze-xilinx-elf\lib\libc.a <==No flags
microblaze-xilinx-elf\lib\bs\libc.a <== Barrel Shifting only
microblaze-xilinx-elf\lib\le\libc.a <== Little Endian only
microblaze-xilinx-elf\lib\m\libc.a <==Multiplier only
microblaze-xilinx-elf\lib\bs\le\libc.a <==Barrel Shifting AND Little Endian
microblaze-xilinx-elf\lib\bs\m\libc.a <==Barrel Shifting AND Multiplier
microblaze-xilinx-elf\lib\m\le\libc.a <== Multiplier AND Little Endian
microblaze-xilinx-elf\lib\bs\m\le\libc.a <==Barrel shifting AND Multiplier AND Little Endian
AR# 45312
Date Created 11/13/2012
Last Updated 11/13/2012
Status Active
Type General Article
Tools
  • EDK - 12.1
  • EDK - 12.2
  • EDK - 12.3
  • More
  • EDK - 12.4
  • EDK - 13
  • EDK - 13.1
  • EDK - 13.2
  • EDK - 13.3
  • Less