Giter Club home page Giter Club logo

toolchain68k's People

Contributors

haarer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

toolchain68k's Issues

Undefined reference to fake_stdin, stdout, and stderr

So playing around with this, When compiling the m68k_example, I get the following:

appinit.c:26: undefined reference to `__sf_fake_stdin'

Not entirely sure what the cause of this is. I assume something with newlib, but not sure where to look.

any ideas?

Conflict with pkg-config in install_req_pkg_windows-latest.sh

Windows 10 (MSYS2).

The install_req_pkg_windows-latest.sh script is useful but may report the following issue.

looking for conflicting packages...
:: mingw-w64-x86_64-pkg-config and mingw-w64-x86_64-pkgconf are in conflict. Remove mingw-w64-x86_64-pkgconf? [Y/n]

It looks pkgconf is more recent, or is a new package to replace pkg-config. So, in theory, the script should use pkgconf.

Wrong usb.h file detection in install_req_pkg_windows-latest.sh

Windows 10 (MSYS2)

The install_req_pkg_windows-latest.sh script reports the following error:
grep: /mingw64/x86_64-w64-mingw32/include/usb.h: No such file or directory
ln: failed to create symbolic link '/mingw64/x86_64-w64-mingw32/include/': No such file or directory

usb.h may be present in another directories.
In my case, usb.h is in the /mingw64/include directory.

Overlap

The compiler makefile for the 68k_example is set for -O0, which is basically no optimization.

I used the example skeleton for my CPU, and ported it over to the MC68010. Works fine, but I wanted to optimize the code a bit more for speed.

-O1 works fine. but -O2 or -O3, I get an Overlap Error:

m68k-elf-gcc -m68010 -I. -DREENTRANT_SYSCALLS_PROVIDED -D_REENT_SMALL -Wall -O2
-std=gnu99 -g -c -o glue.o glue.c
m68k-elf-gcc -m68010 -I. -DREENTRANT_SYSCALLS_PROVIDED -D_REENT_SMALL -Wall -O2
-std=gnu99 -g -c -o uart.o uart.c
m68k-elf-gcc -c -Wa,-adhlns=crt0.S.lst crt0.S -o crt0.o
m68k-elf-gcc -c -Wa,-adhlns=vector.S.lst vector.S -o vector.o
"---> link project to RAM ..."
m68k-elf-gcc crt0.o vector.o main.o appinit.o glue.o uart.o -m68010 -g -nostart
files -Wl,--script=ram.ld,-Map=CPU.map,--allow-multiple-definition -o CPU.elf
c:/msys64/home/user/toolchain68k/toolchain-m68k-elf-current/bin/../lib/gcc/m68k-
elf/9.2.0/../../../../m68k-elf/bin/ld.exe: section .text.startup LMA [0000000000
012a00,0000000000012a41] overlaps section .data LMA [0000000000012a00,0000000000
012f0f]
collect2.exe: error: ld returned 1 exit status
make: *** [CPU.elf] Error 1

I left the ram.ld script pretty much alone, I did change the memory locations and I even tried increasing the size to the max size of my system, but it didnt change anything.

Edit: This is with your stock toolchain, built as-is.

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.