⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ref.library.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>library</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="The eCos Component Writer's Guide"HREF="cdl-guide.html"><LINKREL="UP"TITLE="CDL Language Specification"HREF="reference.html"><LINKREL="PREVIOUS"TITLE="legal_values"HREF="ref.legal-values.html"><LINKREL="NEXT"TITLE="make"HREF="ref.make.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">The <SPANCLASS="APPLICATION">eCos</SPAN> Component Writer's Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="ref.legal-values.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="ref.make.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="REF.LIBRARY"><SPANCLASS="PROPERTY">library</SPAN></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4667"></A><H2>Name</H2>Property <SPANCLASS="PROPERTY">library</SPAN>&nbsp;--&nbsp;Specify which library should contain the object filesgenerated by building this package.</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN4671"><H2>Synopsis</H2><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SYNOPSIS">cdl_package &lt;name&gt; {    library &lt;library name&gt;    &#8230;}</PRE></TD></TR></TABLE></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4673"></A><H2>Description</H2><P>By default all object files that get built for all packages end up ina single library, <TTCLASS="FILENAME">libtarget.a</TT>. This makes thingseasier for the typical application developer because it is onlynecessary to link with a single library, rather than with separatelibraries for each package. It is possible to specify an alternativelibrary for specific files as an option to the <SPANCLASS="PROPERTY">compile</SPAN> and<SPANCLASS="PROPERTY">make_object</SPAN> properties, and there is one library <AHREF="build.html"><TTCLASS="FILENAME">libextras.a</TT></A> which serves aspecific purpose in the build system. The <SPANCLASS="PROPERTY">library</SPAN> property allows analternative library to be specified for all the object files that willbe generated for a given package.</P><P>The use of the <SPANCLASS="PROPERTY">library</SPAN> property should be avoided, since it makesthings more difficult for application developers. The property isintended only for special cases, for example if there are legalobjections to mingling object files from different packages in asingle library. It could also be used to work around name clashproblems if two packages happen to define an exported symbol with thesame name, but any attempt to use multiple libraries in this way iserror-prone and should be avoided.</P><P>The <SPANCLASS="PROPERTY">library</SPAN> property takes a single argument, the name of a library,which should follow the standard naming convention of<TTCLASS="LITERAL">lib&lt;something&gt;.a</TT>. A <SPANCLASS="PROPERTY">library</SPAN> property canonly occur in the body of a <TTCLASS="LITERAL">cdl_package</TT> command and applies to allobject files generated for that package (except where explicitlyoverwritten with a <TTCLASS="LITERAL">-library=</TT> option to one of thebuild-related properties). A <TTCLASS="LITERAL">cdl_package</TT> body can contain at mostone <SPANCLASS="PROPERTY">library</SPAN> property.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4692"></A><H2>Example</H2><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">cdl_package &lt;SOME_PACKAGE&gt; {    &#8230;    library  libSomePackage.a}</PRE></TD></TR></TABLE></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4695"></A><H2>See Also</H2><P>Properties <AHREF="ref.compile.html"><SPANCLASS="PROPERTY">compile</SPAN></A>,<AHREF="ref.make.html"><SPANCLASS="PROPERTY">make</SPAN></A>, and<AHREF="ref.make-object.html"><SPANCLASS="PROPERTY">make_object</SPAN></A>,command <AHREF="ref.cdl-package.html"><TTCLASS="LITERAL">cdl_package</TT></A>.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="ref.legal-values.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="cdl-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="ref.make.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><SPANCLASS="PROPERTY">legal_values</SPAN></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="reference.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><SPANCLASS="PROPERTY">make</SPAN></TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -