OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:58 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: OS Specific Toolchain GCC configurations
PostPosted: Thu Jun 28, 2018 5:34 pm 
Offline

Joined: Tue May 15, 2018 5:03 pm
Posts: 3
Location: Canada
in the OS specific toolchain wiki it says to put in a line like:
Code:
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_Toolchain#gcc.2Fconfig.gcc

if I am porting Newlib as my library of choice, should that look like this instead?
Code:
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h myos.h"


Top
 Profile  
 
 Post subject: Re: OS Specific Toolchain GCC configurations
PostPosted: Fri Jun 29, 2018 12:57 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
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].


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: belliash and 78 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group