madison-embedded / gcc-builds

For projects built with the GNU toolchain.
GNU General Public License v3.0
11 stars 8 forks source link

Common: Missing float command #19

Closed vkottler closed 7 years ago

vkottler commented 7 years ago

Different ARM cores have varying levels of hardware / dedicated FPU support.

We need a float command that implements the following argument pattern:

float [ add | subtract | multiply | divide | + | - | * | / ] <arg1> <arg2>

In addition to performing the calculation, it would be great to have some diagnostic information about how the operation was carried out, including amount of time / number of instructions required if possible.

vkottler commented 7 years ago

Best if done before next weekend (:

vkottler commented 7 years ago

Can you build this in Keil uVision IDE and compare performance?

davidguyuchen commented 7 years ago

Yep, I will give it a try and I'm assuming we are still using the C standard library?

vkottler commented 7 years ago

Yeah, there's a different way to go about re-targeting printf in Keil though