GithubHelp home page GithubHelp logo

Comments (3)

dciabrin avatar dciabrin commented on July 19, 2024

Thanks for the report, I'll have a look shortly as to why this happens.

Would you be able to paste the output of gcc --verbose with your other toolchain?

I wonder if this is due to some default optimization flags used in ngdevkit, the linkscript, or something else entirely.

from ngdevkit.

 avatar commented on July 19, 2024

Thanks for the report, I'll have a look shortly as to why this happens.

Would you be able to paste the output of gcc --verbose with your other toolchain?

I wonder if this is due to some default optimization flags used in ngdevkit, the linkscript, or something else entirely.

$ m68k-elf-gcc fixmath.c --verbose
Using built-in specs.
COLLECT_GCC=m68k-elf-gcc
COLLECT_LTO_WRAPPER=/opt/crosschain/libexec/gcc/m68k-elf/9.2.0/lto-wrapper
Target: m68k-elf
Configured with: ../configure --target=m68k-elf --prefix=/opt/crosschain/ --enable-languages=c,c++ --disable-bootstrap --with-newlib --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --disable-threads --with-gnu-as --with-gnu-ld --disable-nls --with-headers=yes --disable-checking --without-headers
Thread model: single
gcc version 9.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-mcpu=68020'
 /opt/crosschain/libexec/gcc/m68k-elf/9.2.0/cc1 -quiet -v fixmath.c -quiet -dumpbase fixmath.c -mcpu=68020 -auxbase fixmath -version -o /tmp/ccN9PGBl.s
GNU C17 (GCC) version 9.2.0 (m68k-elf)
        compiled by GNU C version 10.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/crosschain/lib/gcc/m68k-elf/9.2.0/include
 /opt/crosschain/lib/gcc/m68k-elf/9.2.0/include-fixed
 /opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/include
End of search list.
GNU C17 (GCC) version 9.2.0 (m68k-elf)
        compiled by GNU C version 10.1.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: aef50da67371b936af677ce3e104e538
COLLECT_GCC_OPTIONS='-v' '-mcpu=68020'
 /opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/bin/as -v -mcpu=68020 -o /tmp/ccRmNlmo.o /tmp/ccN9PGBl.s
GNU assembler version 2.33.1 (m68k-elf) using BFD version (GNU Binutils) 2.33.1
COMPILER_PATH=/opt/crosschain/libexec/gcc/m68k-elf/9.2.0/:/opt/crosschain/libexec/gcc/m68k-elf/9.2.0/:/opt/crosschain/libexec/gcc/m68k-elf/:/opt/crosschain/lib/gcc/m68k-elf/9.2.0/:/opt/crosschain/lib/gcc/m68k-elf/:/opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/bin/
LIBRARY_PATH=/opt/crosschain/lib/gcc/m68k-elf/9.2.0/:/opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/lib/
COLLECT_GCC_OPTIONS='-v' '-mcpu=68020'
 /opt/crosschain/libexec/gcc/m68k-elf/9.2.0/collect2 -plugin /opt/crosschain/libexec/gcc/m68k-elf/9.2.0/liblto_plugin.so -plugin-opt=/opt/crosschain/libexec/gcc/m68k-elf/9.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/cc1Xohrn.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc /opt/crosschain/lib/gcc/m68k-elf/9.2.0/crtbegin.o -L/opt/crosschain/lib/gcc/m68k-elf/9.2.0 -L/opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/lib /tmp/ccRmNlmo.o -lgcc -lc -lgcc /opt/crosschain/lib/gcc/m68k-elf/9.2.0/crtend.o
/opt/crosschain/lib/gcc/m68k-elf/9.2.0/../../../../m68k-elf/bin/ld: attenzione: impossibile trovare il simbolo d'ingresso _start; ripristinato il predefinito 0000000080000080
COLLECT_GCC_OPTIONS='-v' '-mcpu=68020'

from ngdevkit.

 avatar commented on July 19, 2024

I've actually found out that the 68000 doesn't support 32bit multiplication, that's why it uses a subroutine instead.

from ngdevkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.