Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine static library cpu architecture on *nix

There is a static library but i am not sure compiled for sparc or x86 architecture. How to determine this on linux/unix ?

Thanks

like image 351
Erdinç Taşkın Avatar asked Sep 04 '12 10:09

Erdinç Taşkın


People also ask

Is static library portable?

✔️ A program compiled with static libraries is portable because it can be taken to another computer without the need to take the libraries with you.

When to use static vs dynamic libraries?

Static libraries, while reusable in multiple programs, are locked into a program at compile time. Dynamic, or shared libraries, on the other hand, exist as separate files outside of the executable file.


1 Answers

I found objdump tool,

objdump -f FILE_NAME

like image 187
Erdinç Taşkın Avatar answered Sep 24 '22 11:09

Erdinç Taşkın