mpaland/printf

Caveat: requires remainder, divide, and multiply instructions or software implementations

jamolnng opened this issue · 2 comments

This came from this reddit thread https://web.archive.org/web/20200109232034/https://www.reddit.com/r/RISCV/comments/eme6qb/gcc_error_undefined_reference_to_umodsi3/

If the computer architecture does not include remainder, divide, or multiply instructions or software implementations this does not compile. Such instance would be a processor that only implements rv32I instruction set as seen in the reddit thread.

This implies that you aren't linking the libgcc that the compiler supplied, which should be done but doesn't have to be

This implies that you aren't linking the libgcc that the compiler supplied, which should be done but doesn't have to be

Is this a printf question?
Normally the project defines what need to be linked.
printf has nothing to do with underlaying libs nor it needs any special ones.