|
mods please change thread title to "language lawyers: the standard says I can format your hard drive"
|
# ¿ Jun 27, 2017 21:34 |
|
|
# ¿ May 1, 2024 18:36 |
|
Phobeste posted:how long before the embedded world gets first class cortex m-4 and subsequent support for building from llvm. also how long until i can stop having to loving compile cross compilers. these questions are probably linked if by first class you mean broken every other day then m4 is fully supported. what's the alternative to compiling cross compilers? you just want to download a binary that builds for EVERYTHING?
|
# ¿ Jun 28, 2017 15:08 |
|
hey, how about we make a c compiler that doesn't need declarations of local functions before use because it's not the 70's anymore? no, I don't care about the standard.
|
# ¿ Jul 2, 2017 03:45 |
|
rjmccall posted:apple's arm32 abi is pretty terrible, mostly around floating-point arguments. the calling convention clearly predates the idea that arm processors might drive general-purpose computation and/or actually have a floating-point unit; it's basically an all-arguments-on-stack convention that pops the first 16 bytes into integer registers, which means e.g. an early double will get passed as two ints. also the arm bitfield layout rules are needlessly different from the standard sysv rules AEABI was out before we shipped the Aspen OS 2 (with the App Store) and it fixes most of the stupid things in the old ABI, including passing floating point arguments in FPU registers. iPod engineering switched to it because they were using ARM's compiler. iPhoneOS didn't because they were stuck with lovely gcc.
|
# ¿ Jul 2, 2017 04:13 |
|
Plorkyeran posted:use c++ you go to hell
|
# ¿ Jul 2, 2017 06:31 |
|
Notorious b.s.d. posted:the watch has its own abi ? what do you mean when you say "the same OS"?
|
# ¿ Jul 4, 2017 23:49 |
|
Notorious b.s.d. posted:well it didn't dawn on me until you guys brought it up that they would be anything but ios the definition of what is "iOS" is not exactly clean cut. it runs a Darwin OS (kernel plus system libraries), which is the same on everything from watch to phone to Mac. it has some kind of UI framework that is probably based on UIKit but who knows how they cut it down. since it doesn't run third party apps I don't see why it matters what the ABI is, they chose the best one for the architecture.
|
# ¿ Jul 5, 2017 16:06 |
|
I.e., you were writing a non trivial program
|
# ¿ Jul 7, 2017 17:51 |
|
that sounds like an os bug to me
|
# ¿ Jul 10, 2017 18:48 |
|
do I know anyone stupid enough to run the linker as root 🤔
|
# ¿ Jul 10, 2017 20:20 |
|
let me rephrase that. I know a lot of idiots running compilers and linkers as root
|
# ¿ Jul 10, 2017 20:44 |
|
Spatial posted:one of those classic coding moments where my entire day's work was changing one character for a thousand times performance improvement. more like one of those moments when you realize why C++ is a terrible language
|
# ¿ Jul 11, 2017 16:06 |
|
java doesn't force me to declare a function that is in the same file if I use it before it's defined. it's time c[++] compilers caught up to this amazing 1995-era technology.
|
# ¿ Aug 4, 2017 14:49 |
|
Silver Alicorn posted:c/++ are supposed to compile down to asm in a very direct manner. if you want higher level functionality, you need to look elsewhere I don't need to declare my labels in assembly before branching to them either
|
# ¿ Aug 4, 2017 15:33 |
|
Spatial posted:*reparses the same header for the 22,452nd time* *writes the same header inclusion guard boilerplate for the 1,000th time*
|
# ¿ Aug 4, 2017 15:38 |
|
on the other hand, Ive been stuck with gcc for the last month and I forgot how bad it is. clang is so good.
|
# ¿ Aug 4, 2017 15:39 |
|
Silver Alicorn posted:again, totally not the use case for C (operating systems, low level programs and embedded code too big for assembly) my job is writing low level embedded code. I use c. declaring and maintaining static function declarations is a waste of my loving time.
|
# ¿ Aug 4, 2017 16:11 |
|
Powaqoatse posted:write a script that slurps them into a header file that you include lol now I have two problems
|
# ¿ Aug 4, 2017 18:55 |
|
rjmccall posted:the type of an undeclared function is defined by the language standard, not the compiler, and it can never be changed because the old terrible code that uses it is the sort of old terrible code that would rely on it clang -Wall --i-am-never-calling-undeclared-functions --seriously-my-code-isnt-from-the-80s --go-ahead-and-find-my-static-defines foo.c
|
# ¿ Aug 4, 2017 23:32 |
|
JawnV6 posted:what's the worst overloading on a single word weak is pretty bad
|
# ¿ Aug 16, 2017 01:29 |
|
Cocoa Crispies posted:it's #pragma once now in all my personal projects, definitely. but it's not portable and you can't always use it, which, in the fine C tradition, means we must revert to the lowest common denominator.
|
# ¿ Aug 17, 2017 15:44 |
|
|
# ¿ May 1, 2024 18:36 |
|
Plorkyeran posted:it's portable to every compiler that actually exists. even tcc supports it. agreed. let me post this to the mailing list of a few thousand developers and see how that turns out
|
# ¿ Aug 17, 2017 19:50 |