On Wed, 2006-02-15 at 13:30 +0530, Santhosh wrote:
> I am using Net-Snmp-5.3.0.1 for MIB2C compiler

Well, "mib2c" isn't strictly a compiler - it's
really more of a code generator.   And to answer
the question in the subject, these code files
*do* require a compiler before they can be run.

The flow of activity is as follows:


         +-------+              +-----+
 MIB --> | mib2c | -> *.[ch] -> | gcc | -> agent
file     +-------+              +-----+    module


It's that last "agent module" that is what's run
(either linked into the main agent binary, loaded
 dynamically or as part of a subagent).

 
> can i generate .c & .h files which are Position Independent and can
> carry headers along with them
> as i need to port these files on my hardware in need to make these
> files static

I'm sorry - I don't understand what you mean.
The .c and .h files are simply C code.
Whether the agent module uses Position Independent Code
or not, depends purely on how you compile them.
The source code is unaffected by this.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to