Does LLVM-RL78 use the hardware multiplication/division peripheral unit of RL78/G13 or not?
Does LLVM-RL78 use the hardware multiplication/division peripheral unit of RL78/G13 or not?
Hello support team,
I have an impression after reading the following documents that LLVM-RL78 always uses the unit. But the following code doesn’t use it. (I don’t want to use it.) Does LLVM-RL78 use it?
LLVM-RL78-install-folder/user_manual.pdf
LLVM-RL78-install-folder/release_notes.pdf
unsigned short x, y;
unsigned long z;
int main(void)
{
z = x * y;
while(1) ;
}
And I have one more question. The latter document tells us that there are no option to enable/disable the usage of the unit. But e2 studio 2021-04 has the selection check box for use or not use “-mdisable-mda” option at CPU setting property sheet in LLVM-RL78 compiler setting property sheet. Is e2 studio right?
Best regards,
NoMaY
Hello,
Thank you for reaching out to us!
Currently, by default, the usage of the hardware multiplication/division unit is NOT generated.
The “-mdisable-mda” selection check box from e2studio is used to send the ‘-mdisable-mda’ option which will be fully supported starting with the next release.
Please let us know if we can be of further assistance!
Best Regards,
The Open Source Tools Team