Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: acaiberii on May 13, 2021, 02:42:36 am

Title: Compiling to an ISO with C and Assembly
Post by: acaiberii on May 13, 2021, 02:42:36 am
Hello, I'm very new to the whole C/Assembly/C++ ecosystem. After learning c# and Java for the past 4 months, I wanted to move on and start a new project.

I'm trying to make an operating system including both Assembly and C++, but I don't really know how to use CodeBlocks all that well.
Would anyone give me some pointers on how to configure your project to compile to an ISO with both Assembly and C? Thank you!
Title: Re: Compiling to an ISO with C and Assembly
Post by: stahta01 on May 13, 2021, 05:21:33 am
Link to an open source OS https://reactos.org/ (https://reactos.org/)

Edit2: Add second link https://wiki.osdev.org/Main_Page (https://wiki.osdev.org/Main_Page)

Your question is too open ended and off topic for this website.

I suggest you first decide on the Compiler Toolchain you are going to use.

And, then asking this site about how to setup Code::Blocks to use that compiler.

Edit: Second question is how to use both C and Assembly code in one CB project.
I have never done that and the answer would likely depend on the C Compiler that is used.

I suggest looking at least at the CB FAQs https://wiki.codeblocks.org/index.php/Main_Page (https://wiki.codeblocks.org/index.php/Main_Page)

Tim S.
Title: Re: Compiling to an ISO with C and Assembly
Post by: oBFusCATed on May 13, 2021, 01:26:55 pm
https://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system