OS Specific Toolchain GCC configurations

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
DarkPhoenix6
Posts: 3
Joined: Tue May 15, 2018 5:03 pm
Location: Canada

OS Specific Toolchain GCC configurations

Post by DarkPhoenix6 »

in the OS specific toolchain wiki it says to put in a line like:

Code: Select all

tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h glibc-stdint.h i386/i386elf.h myos.h"
in gcc/config.gcc
see: https://wiki.osdev.org/OS_Specific_Tool ... config.gcc

if I am porting Newlib as my library of choice, should that look like this instead?

Code: Select all

tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h myos.h"
Korona
Member
Member
Posts: 1000
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: OS Specific Toolchain GCC configurations

Post by Korona »

Does newlib-stdint.h exist? You can lookup those files in the gcc/config/ (IIRC) directory and see what they define. Do not blindly add target configuration headers; instead, try to understand what they actually do.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply