硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4422|回复: 3
收起左侧

[DSP] CMSIS-DSP的不同库版本含义和几个相关宏定义的作用

[复制链接]

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
111801
QQ
发表于 2019-7-29 11:00:42 | 显示全部楼层 |阅读模式
不同版本:

  • arm_cortexM7lfdp_math.lib (Cortex-M7, Little endian, Double Precision Floating Point Unit)
  • arm_cortexM7bfdp_math.lib (Cortex-M7, Big endian, Double Precision Floating Point Unit)
  • arm_cortexM7lfsp_math.lib (Cortex-M7, Little endian, Single Precision Floating Point Unit)
  • arm_cortexM7bfsp_math.lib (Cortex-M7, Big endian and Single Precision Floating Point Unit on)
  • arm_cortexM7l_math.lib (Cortex-M7, Little endian)
  • arm_cortexM7b_math.lib (Cortex-M7, Big endian)
  • arm_cortexM4lf_math.lib (Cortex-M4, Little endian, Floating Point Unit)
  • arm_cortexM4bf_math.lib (Cortex-M4, Big endian, Floating Point Unit)
  • arm_cortexM4l_math.lib (Cortex-M4, Little endian)
  • arm_cortexM4b_math.lib (Cortex-M4, Big endian)
  • arm_cortexM3l_math.lib (Cortex-M3, Little endian)
  • arm_cortexM3b_math.lib (Cortex-M3, Big endian)
  • arm_cortexM0l_math.lib (Cortex-M0 / Cortex-M0+, Little endian)
  • arm_cortexM0b_math.lib (Cortex-M0 / Cortex-M0+, Big endian)
  • arm_ARMv8MBLl_math.lib (Armv8-M Baseline, Little endian)
  • arm_ARMv8MMLl_math.lib (Armv8-M Mainline, Little endian)
  • arm_ARMv8MMLlfsp_math.lib (Armv8-M Mainline, Little endian, Single Precision Floating Point Unit)
  • arm_ARMv8MMLld_math.lib (Armv8-M Mainline, Little endian, DSP instructions)
  • arm_ARMv8MMLldfsp_math.lib (Armv8-M Mainline, Little endian, DSP instructions, Single Precision Floating Point Unit)

宏定义:
Each library project have different preprocessor macros.
  • ARM_MATH_BIG_ENDIAN:
Define macro ARM_MATH_BIG_ENDIAN to build the library for big endian targets. By default library builds for little endian targets.
  • ARM_MATH_MATRIX_CHECK:
Define macro ARM_MATH_MATRIX_CHECK for checking on the input and output sizes of matrices
  • ARM_MATH_ROUNDING:
Define macro ARM_MATH_ROUNDING for rounding on support functions
  • ARM_MATH_LOOPUNROLL:
Define macro ARM_MATH_LOOPUNROLL to enable manual loop unrolling in DSP functions
  • ARM_MATH_NEON:
Define macro ARM_MATH_NEON to enable Neon versions of the DSP functions. It is not enabled by default when Neon is available because performances are dependent on the compiler and target architecture.
  • ARM_MATH_NEON_EXPERIMENTAL:
Define macro ARM_MATH_NEON_EXPERIMENTAL to enable experimental Neon versions of of some DSP functions. Experimental Neon versions currently do not have better performances than the scalar versions.


回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
111801
QQ
 楼主| 发表于 2019-7-29 11:03:29 | 显示全部楼层
对于H7的话,我们用这个版本

arm_cortexM7lfdp_math.lib

小端,双精度浮点。
回复

使用道具 举报

1

主题

376

回帖

379

积分

高级会员

积分
379
发表于 2019-8-2 22:30:48 | 显示全部楼层
终于恢复了,机动
回复

使用道具 举报

2

主题

70

回帖

76

积分

初级会员

积分
76
发表于 2019-8-5 10:20:42 | 显示全部楼层
测试是不是缓存
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-11-11 03:47 , Processed in 0.210418 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表