Comments (3)
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.
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.
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)
- How to convert Sprites via ngdevkit? HOT 1
- Linux compilation instructions: Ubuntu readline package name change HOT 1
- Deferred VBL routines, audio, and then some more HOT 4
- Address error HOT 1
- Packaging of ngdevkit-toolchain is broken for sdcc HOT 1
- deb packages are broken in launchpad for Jammy 22.04 HOT 1
- pip3 install pygame HOT 3
- SDCC no longer builds in MSYS2
- Tracker music support for ngdevkit? HOT 2
- GnGeo compatible with MAME? HOT 6
- Update MSYS2 dependencies for ngdevkit to explicitly depend on PyGame
- MSYS2 pacman 404s when trying to download ngdevkit repo database HOT 7
- Move MSYS2 CI builds to one branch per sub-project HOT 1
- Clean nightly tags in msys2-ngdevkit repository after new commits/builds
- Update ngdevkit docs to use the new ucrt64 packages HOT 1
- rpm rebuild workflow in COPR HOT 1
- PyGame may load palette .png incorrectly, which breaks ngdevkit tools
- Games no longer work in MAME HOT 3
- SDCC compiled with program-prefix breaks .rel files generated with sdas
- ngdevkit cannot extract toolchain tarball with recent msys2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngdevkit.