This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 CMD文件中 IQmath_fpu32.lib<IQNexpTable.obj> (IQmathTablesRam)什么意思?

Other Parts Discussed in Thread: CONTROLSUITE

请问一下,下面一段代码有何用意?

IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD
{
IQmath_fpu32.lib<IQNexpTable.obj> (IQmathTablesRam)
}
IQmathTablesRam : > RAML4, PAGE = 1

IQmath_fpu32.lib<IQNexpTable.obj> (IQmathTablesRam) 这段代码是什么意思

  • 楼主查看一下文档C:\ti\controlSUITE\libs\math\IQmath\v160\doc

    里面有这个说明

    The 2833x and 2823x boot ROM includes the IQNexpTable used by the IQNexp() and
    IQexp() functions. In this case the IQNexpTable can be placed into its own section and
    identified as type NOLOAD as shown in the next example.

    ERIC

  • 先谢谢了

    还不太清楚,The remainder of the IQmathTablesRam section is allocated to SARAM.

    为什么要加这样一段代码?IQmath_fpu32.lib<IQNexpTable.obj> (IQmathTablesRam),如果不加的话,会怎么样?下面是我在别处看到的:

    Uncomment the section below if calling the IQNexp() or IQexp() functions from the IQMath.lib library in order to utilize the relevant IQ Math table in Boot ROM (This saves space and Boot ROM is 1 wait-state). If this section is not uncommented, IQmathTables2 will be loaded into other memory (SARAM, Flash, etc.) and will take up space, but 0 wait-state is possible

    还有就是IQmath Library和数学表的关系,如果调用IQmath Library中的数学函数的话,就会给函数分配地址,是所有的函数都会分配吗?额,我的理解。。。

    此外数学函数计算的话是会用到数学表的

    求解惑

  • 它这个解释是

    IQmath_fpu32.lib中的IQNexpTable.obj里面除了IQmathTablesRam, 都直接用ROM中的自己的段,里面就有对应的表格。

    那么这个.obj里面有用到这个段IQmathTablesRam,需要映射到RAM的地址。E

    Eric

  • 谢谢Eric

    我还有点疑惑的是IQmath Library和数学表的关系,IQmath Library中的函数是通过查找表来得到结果,譬如计算sin值,是通过查找表得到的,如果是这样的话,精度如何?

    如果调用了IQmath Library的函数,才给它分配地址吗?如果不调用的话,就不分配地址吧。

  • 楼主

    在文档中有这个精度误差的说明:C:\ti\controlSUITE\libs\math\IQmath\v160\doc

    对于库,你调用到的函数才会参与编译。

    Eric

  • 谢谢了,我去看看文档