Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>You can target an embedded ARM board or a RISC-V chip with one flag:

  gcc main.c --target=arm-linux-gnueabihf -o app
AI hallucination? --target does not exist in GCC. Clang has -target, but you still need to install libc for the target architecture.


> AI hallucination? --target does not exist in GCC.

It might also be someone used to a system which symlinks "gcc" to clang for compatibility (IIRC, that's the case at least on OS X).


It's still just a single hyphen on clang, double hyphen like in the post does not work on clang either.


https://github.com/little-book-of/c/commit/aa7496f9ba58ac11a...

just got updated with some clarity

> *Some parts of this article were refined with help from LLMs to improve clarity and technical accuracy. These are just personal notes, but I would really appreciate feedback: feel free to share your thoughts, open an issue, or send a pull request!*


Seems the technical accuracy wasn't improved very much, if at all.


They fixed this "mistake" a few minutes ago.

https://github.com/little-book-of/c/commit/43b0a89852a507bdd...


And that "fix" is not "one flag" any more either since you have to install that compiler somehow.


I wonder if they are simply pasting your criticism into an AI prompt.

https://github.com/little-book-of/c/commit/349d475a5922cf005...


Lmao, probably. I'm not going to trust anything else this person has written, since this has proven to me he's writing about things he has little experience with.


Unfortunate to say the article does smell like LLMs had a heavy hand in it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: