Operating System - HP-UX
1753808
Members
8231
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2004 08:21 PM
тАО01-16-2004 08:21 PM
Links
Hi,
What is Dynamic Link and static Links In Unix.
Whats the Use???
How to do U link it.
Rgds
Raghu
What is Dynamic Link and static Links In Unix.
Whats the Use???
How to do U link it.
Rgds
Raghu
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2004 10:51 PM
тАО01-16-2004 10:51 PM
Re: Links
Hi Raghu,
Do you mean symbolic links and hard links ( ln / or ln -s ) check man ln.
Or do you mean how do you link executables. There are Dynamicly linked and staticly linked executabeles. ( /usr/bin ( is a link to /bin, and /sbin) use file to check.
So they are both used.
Gideon
Do you mean symbolic links and hard links ( ln / or ln -s ) check man ln.
Or do you mean how do you link executables. There are Dynamicly linked and staticly linked executabeles. ( /usr/bin ( is a link to /bin, and /sbin) use file
So they are both used.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2004 02:18 AM
тАО01-17-2004 02:18 AM
Re: Links
put simply, static linking results in a binary that has all the code from the input object files and libraries in the final executable.
dynamic linking makes use of the fact that many programs tend to use some common libraries. so libraries (like libc) are shared at runtime amongst processes. their code (not data) is actually loaded only once into memory. this also reduces the size of the executable file.
for details, see the hpux linker and libraries user guide at
http://docs.hp.com/hpux/onlinedocs/B2355-90654/B2355-90654.html
specifically the section about creating and using libraries:
http://docs.hp.com/hpux/onlinedocs/B2355-90654/00/00/44-con.html
--
ranga
[i work for hpe]
dynamic linking makes use of the fact that many programs tend to use some common libraries. so libraries (like libc) are shared at runtime amongst processes. their code (not data) is actually loaded only once into memory. this also reduces the size of the executable file.
for details, see the hpux linker and libraries user guide at
http://docs.hp.com/hpux/onlinedocs/B2355-90654/B2355-90654.html
specifically the section about creating and using libraries:
http://docs.hp.com/hpux/onlinedocs/B2355-90654/00/00/44-con.html
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2004 04:06 PM
тАО01-17-2004 04:06 PM
Re: Links
Hi,
In addition to Ranganath's message, you can find the statically linked binaries under /sbin. They are meant for single user/lvm maintenance mode as /usr/lib may not be available during that time.
Statically linked binary will have all the machine code required for it to run. Dynamically linked binary will have only references to where to find the libraries that have the necessary machine code.
For cc, you can use "-dynamic" for the linker to generate dynamically linked executables. This is default. For statically liked ones, you will need to explicitly specify -noshared option with cc.
-Sri
In addition to Ranganath's message, you can find the statically linked binaries under /sbin. They are meant for single user/lvm maintenance mode as /usr/lib may not be available during that time.
Statically linked binary will have all the machine code required for it to run. Dynamically linked binary will have only references to where to find the libraries that have the necessary machine code.
For cc, you can use "-dynamic" for the linker to generate dynamically linked executables. This is default. For statically liked ones, you will need to explicitly specify -noshared option with cc.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP