fix compile bug for hc32f4a0 #285

Closed
JeremyMo wants to merge 0 commits from JeremyMo/xiuos:prepare_for_master into 2023_open_source_contest
Member

HC32F4A0使用FCU处理浮点计算
若要与libs7.a库兼容,需要将编译参数设置为-mfloat-abi=softfp
float-abi有三个参数可选:

  • soft:有浮点运算全部在软件层实现,效率不高,适合于早期没有浮点计算单元的ARM处理器
  • softfp:它将浮点计算交给FPU处理,但函数参数的传递使用通用的整型寄存器而不是FPU寄存器
    -hard:使用FPU浮点寄存器将函数参数传递给FPU处理
HC32F4A0使用FCU处理浮点计算 若要与libs7.a库兼容,需要将编译参数设置为`-mfloat-abi=softfp` float-abi有三个参数可选: - `soft`:有浮点运算全部在软件层实现,效率不高,适合于早期没有浮点计算单元的ARM处理器 - `softfp`:它将浮点计算交给FPU处理,但函数参数的传递使用通用的整型寄存器而不是FPU寄存器 -`hard`:使用FPU浮点寄存器将函数参数传递给FPU处理
IACU was assigned by JeremyMo 2023-05-15 15:28:46 +08:00
JeremyMo added 2 commits 2023-05-15 15:28:51 +08:00
IACU closed this pull request 2023-05-15 16:12:42 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xuos/xiuos#285
No description provided.