LoginSignup
0
1

More than 5 years have passed since last update.

MSP430 > Link > math.h | メモリ消費

Last updated at Posted at 2016-04-28

MSP430でmath.hを使う場合、IAR Embedded Workbenchだとコンパイルオプション(-lm)はいらないようだ。

When you are using IAR Embedded Workbench, you don't need to do anything special to use it.

math.hを加えることで、メモリ消費がどれくらい増えるかは懸念事項。

メモリ消費

コードに以下を追加してみた。

#include <math.h>

double d0;

d0 = sqrt(3.1415);

変更前

size type
38 724 CODE
6 213 DATA
1 461 CONST

変更後

size type
38 974 CODE
6 213 DATA
1 461 CONST
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1