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

📄 tgtarch.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head><!-- /vobs/wpwr/docs/tornado-api/tgtint/tgtarch.html - generated by refgen from tgtarch.c --> <title> tgtarch </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>Tornado API Reference :  Target Server Internal Routines</i></a></p></blockquote><h1>tgtarch</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>tgtarch</strong> - target architecture information library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./tgtarch.html#targetArchitectureInit">targetArchitectureInit</a></i>(&nbsp;)</b>  -  Set the target architecture related infomations.<br><b><i><a href="./tgtarch.html#tgtCpuTypeGet">tgtCpuTypeGet</a></i>(&nbsp;)</b>  -  Returns the target CPU type<br><b><i><a href="./tgtarch.html#tgtCpuNameGet">tgtCpuNameGet</a></i>(&nbsp;)</b>  -  Returns the target CPU name.<br><b><i><a href="./tgtarch.html#tgtSwapNeeded">tgtSwapNeeded</a></i>(&nbsp;)</b>  -  Returns TRUE if host and target byte order differs.<br><b><i><a href="./tgtarch.html#tgtCpuFamilyGet">tgtCpuFamilyGet</a></i>(&nbsp;)</b>  -  Returns the target CPU family type.<br><b><i><a href="./tgtarch.html#tgtCpuFamilyNameGet">tgtCpuFamilyNameGet</a></i>(&nbsp;)</b>  -  Returns the target CPU family name.<br><b><i><a href="./tgtarch.html#tgtCpuAlignmentGet">tgtCpuAlignmentGet</a></i>(&nbsp;)</b>  -  Returns the target CPU memory aligment.<br><b><i><a href="./tgtarch.html#tgtLoaderOmfTypeGet">tgtLoaderOmfTypeGet</a></i>(&nbsp;)</b>  -  Returns the loader Object Module Format currently used.<br><b><i><a href="./tgtarch.html#tgtLoaderNameGet">tgtLoaderNameGet</a></i>(&nbsp;)</b>  -  Returns the loader DLL name currently used.<br><b><i><a href="./tgtarch.html#tgtLoaderInitRtnNameGet">tgtLoaderInitRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the loader initialization routine name.<br><b><i><a href="./tgtarch.html#tgtLoaderCheckRtnNameGet">tgtLoaderCheckRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the loader module verifier name.<br><b><i><a href="./tgtarch.html#tgtLoaderManageRtnNameGet">tgtLoaderManageRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the loader module manager routine name.<br><b><i><a href="./tgtarch.html#tgtRelocatorNameGet">tgtRelocatorNameGet</a></i>(&nbsp;)</b>  -  Returns the relocator DLL name currently used.<br><b><i><a href="./tgtarch.html#tgtSegRelocatorRtnNameGet">tgtSegRelocatorRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the segment relocator routine name.<br><b><i><a href="./tgtarch.html#tgtModuleVerifyRtnNameGet">tgtModuleVerifyRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the module verifier routine name.<br><b><i><a href="./tgtarch.html#tgtRelocInitRtnNameGet">tgtRelocInitRtnNameGet</a></i>(&nbsp;)</b>  -  Returns the relocator library initialization<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains functions used by the target server modules to get targetarchitecture informations. Those information are stored in a resource file :$(<b>WIND_BASE</b>)/resource/target/architecturedb which describes all informationsrelated to a CPU/CPU family. Those informations are :<dl><dt>cpuname<dd>represents the CPU name (string)<p><dt>cpuFamily<dd>represents the CPU family (integer)<p><dt>cpuFamilyName<dd>represents the CPU family name (string).<p><dt>Memory alignment<dd>represents the memory alignment for this CPU.<p><dt>Object File Type<dd>represents the Object Module Formats supported for this CPU.<p><dt>Leading Character<dd>is the leading char for the symbols.<p><dt>Thumbing<dd>tells if thumbing mode is enabled (used for ARM processors).<p> </dl></blockquote><h4>INCLUDE FILES</h4><blockquote><p><p>&nbsp;<b>tgtarch.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b>, architecturedb (4),  <i>API Programmer's Guide: Object Module Loader </i><p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb<hr><a name="targetArchitectureInit"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>targetArchitectureInit</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>targetArchitectureInit</i>(&nbsp;)</strong> - Set the target architecture related infomations.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS targetArchitectureInit    (    WTX_TGT_INFO * pWtxTgtInfo    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine parses the <b><a href="../../tornado/files/architecturedb.html#top" >architecturedb</a></b> file to get all the parameters :It goes to the section [CPU_<<i>CPU_Id</i>>] where <<i>CPU_Id</i>> is extracted from thegiven  <b>WTX_TGT_INFO</b> parameter. Takes the <b>cpuname</b> and <b>cpuFamilyName</b>parameters.<p>Then it goes to the section [<<i>cpuFamilyName</i>>] to get all the remaininginformations : cpuFamily, Object File Type, Memory alignment, LeadingCharacter.<p>The other parameters are used to build CPU specific DLL names (seetgtLoaderxxxGet, tgtRelocatorxxGet, tgtDisassemblerxxxGet routines).<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR if initialization fails. Failure conditions are :<p>&nbsp;-&nbsp;Resource&nbsp;database&nbsp;not&nbsp;accessible;<br>&nbsp;-&nbsp;Required&nbsp;parameter&nbsp;not&nbsp;found,&nbsp;or&nbsp;set&nbsp;with&nbsp;incorrect&nbsp;value.<p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtCpuTypeGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtCpuTypeGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtCpuTypeGet</i>(&nbsp;)</strong> - Returns the target CPU type</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int tgtCpuTypeGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the type of the CPU of the currently attached target. <p></blockquote><h4>RETURNS </h4><blockquote><p>The CPU type (integer).</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtCpuNameGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtCpuNameGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtCpuNameGet</i>(&nbsp;)</strong> - Returns the target CPU name.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char * tgtCpuNameGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the ASCII name of the CPU on the currently attachedtarget. The value returned is extracted from the <b>cpuname</b> parameter in thetarget resource file.<p></blockquote><h4>RETURNS </h4><blockquote><p>The CPU name (pointer to a static string).<p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtSwapNeeded"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtSwapNeeded</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtSwapNeeded</i>(&nbsp;)</strong> - Returns TRUE if host and target byte order differs.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int tgtSwapNeeded (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine tells if the target endianness differs from the host's one.<p></blockquote><h4>RETURNS </h4><blockquote><p>TRUE or FALSE whether the target endianess differs from host or not.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtCpuFamilyGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtCpuFamilyGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtCpuFamilyGet</i>(&nbsp;)</strong> - Returns the target CPU family type.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int tgtCpuFamilyGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the currently attached target CPU family type.The value returned is extracted from the <b>cpuFamily</b> parameter in the target resource file.<p></blockquote><h4>RETURNS </h4><blockquote><p>The CPU family type (integer).<p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtCpuFamilyNameGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtCpuFamilyNameGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtCpuFamilyNameGet</i>(&nbsp;)</strong> - Returns the target CPU family name.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char * tgtCpuFamilyNameGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the ASCII name of the CPU family on the currentlyattached target. This value is extracted from the <b>cpuFamilyName</b> parameter inthe target resource file.<p></blockquote><h4>RETURNS </h4><blockquote><p>The CPU family name (pointer to a static string).<p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtCpuAlignmentGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtCpuAlignmentGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtCpuAlignmentGet</i>(&nbsp;)</strong> - Returns the target CPU memory aligment.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int tgtCpuAlignmentGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the memory alignment for the  attached target.The value returned is extracted from the <b>Memory alignment</b> parameter in thetarget resource file.<p></blockquote><h4>RETURNS </h4><blockquote><p>The target memory aligment (integer).<p></blockquote><h4>FILES </h4><blockquote><p><p>$(<b>WIND_BASE</b>)/resource/target/architecturedb</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./tgtarch.html#top">tgtarch</a></b><hr><a name="tgtLoaderOmfTypeGet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>tgtLoaderOmfTypeGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>tgtLoaderOmfTypeGet</i>(&nbsp;)</strong> - Returns the loader Object Module Format currently used.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char * tgtLoaderOmfTypeGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the ASCII name of the Object Module Format currentlyused. This value is extracted from the <b>Object File Type</b> parameter in thetarget resource file.<p></blockquote><h4>RETURNS </h4><blockquote><p>

⌨️ 快捷键说明

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