c - 如何在risc-v中实现printf函数?
问题描述
这是我在 RISC-V 汇编中尝试做的 C 表示:
printf ("x=%d\n", x);
解决方案
https://godbolt.org/ is an interesting site. If you paste in c
code, it can be transfered into others, such as RISC-V assembly. The sample c
code is available from menie.org/georges/embedded/small_printf_source_code.html. It does work. Good luck.
推荐阅读
- python - Jupyter .ipynb 文件在使用 nbformat 包读取时更改字符串格式
- android - 如何读取内部服务器 graphql 消息?
- c# - Youtube Data API C# - 无需请求用户凭据即可使用
- python - Onesignal - 如何使用 python 向 android 设备发送推送通知?
- php - 我对 laravel nova 和 showCreateRelationButton 函数有疑问
- java - 为什么我在 Eclipse 中的 jsp 页面没有将图像显示到 img 标签中?
- c# - 使用查询表达式选择 const 值
- c# - 使用 windows-beacon-library 传输 iBeacon 时如何解决 System.NullReferenceException
- c# - 相机统一性问题
- spring-boot - Spring JPA @Query Anatotion 的缺点