10-float.cminus 349 Bytes
Newer Older
jhe's avatar
jhe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
int main(void) {
    float a;
    float b;
    float c;

    a = 1.1;
    b = 1.5;
    c = 1.2;

    outputFloat(a * b + c);
    return 0;
}

/*
    用 gcc 编译此文件生成汇编代码时,命令为  gcc -include io.h -S 10-float.c
    其中 io.h 位于 src/io/io.h,

    也可以在本文件开头加上    void outputFloat(float x);
*/