Trade slightly more CPU usage for less memory usage
Fixed compile with IAR
Added get_dep_opt for ARM class