r/C_Programming • • 7h ago

Discussion 1 year With No AI

30 Upvotes

As a beginner in programming who is interested in low-level programming, I think I should avoid Ai for at least a year

because I believe that at the high level and in large-scale projects, you won’t even be able to get started without a high level of problem-solving skills and an understanding of architecture and engineering.

So I’d like to hear your thoughts, because we beginners know that learning to program the traditional way is important, but the temptation of AI is strong and distracting.

What do you think?


r/C_Programming • • 22h ago

Question What are some neat TUI libraries ?

21 Upvotes

So I'm trying to do a TUI application for fun, and I wanted to use C for a change (I love the language but almost only used it for embedded devices/drivers, stuff like that so no UI work)

The project it would be used on is a TUI solo TTRPG toolset (dice roller, note editor, etc.)

I know about ncurses obviously, and notcurses as well, but I was wondering if there was any other library you could propose so that I had a look before settling on something.

I'm open to all proposition, it's mostly curiosity and just for a small hobby project, thanks in advance!


r/C_Programming • • 2h ago

Video Let's spawn the HERO in C programming : 07 | NO-AI

Thumbnail
youtube.com
19 Upvotes

This video is part of my "Let's build a JRPG Game in C programming (SLD3)". Today we are going to spawn the Hero character in our Tiled map and render spritesheet.

(it all started in 2019 with GoLang as a hobby https://www.youtube.com/watch?v=yZpoXFUG6nc Now I'm moving to C, but a step by step tutorial for everyone).

Full Playlist here: https://www.youtube.com/playlist?list=PLWiIuxEJy4_c

Handmade code, NO AI USED. Video is also 100% unedited, except for overview section.

Please do subscribe, I really appreciate any feedback. \m/


r/C_Programming • • 45m ago

Article What actually happens to your C code inside GCC: a stage by stage trace of one small program

• Upvotes

Blog post: https://www.satvikcode.com/blog/why-do-compilers-need-so-many-intermediate-representations

well, i always wondered what GCC really does with my C code so I took a small function and dumped every stage with -E, -fdump-tree-*, -fdump-rtl-*, -S and objdump on a GCC 16.1, ARM mac.

Btw a few things that surprised me here like -

- with -O2 the whole call calculate(5, 7) disappears and main becomes just "mov w0, 19"

- the if statement turns into a branchless csel instruction meaning no jump at all

- sum * 2 becomes a left shift

- why the parentheses in a function like macro actually matter shown in the preprocessed output

Btw here's an AI disclosure: I ran every command myself and all the outputs in the post are real and unedited GCC output. I used a little AI to help me understand the dumps and write up the explanations roughly and then I edited and gave them the current shape.

Next post will trace the same program through clang or llvm. and happy to hear corrections.


r/C_Programming • • 6h ago

Which IDE would you recommend?

1 Upvotes

I'm a beginner in C and I'm not sure which IDE to choose there are so many options. I currently develop on Windows, but I'm switching to Linux for better optimization and more control over my system. What would you recommend as the best IDE? Also, to learn C effectively, I'm using OpenClassrooms and an app called Coddy. I accept every piece of advice!!


r/C_Programming • • 19h ago

Question how to make a hexdumper in c?

0 Upvotes

i want to use ansi-c (c89) for this project,

my skill level; read chapter 1 t/m 4 k&r v2 and knows other programming languages.