Daniele°
#define file_exists(N) ({struct stat z; !stat(N,&z)}) if you like stat
Mihail
Just to make my code one line shorter
Daniele°
What if I don't like abusing #define tho?
__always_inline bool_t file_exists(char const* name){ struct stat z; return !stat(name,&z); }
Jussi
What if I don't like abusing #define tho?
You can put it inside namespace... Oh wait it's C
Daniele°
Just to make my code one line shorter
__always_inline bool_t file_exists(char const* name){ return access(name, F_OK ) != -1; }
Daniele°
Daniele°
😂
BinaryByter
__always_inline bool_t file_exists(char const* name){ return access(name, F_OK ) != -1; }
is your pay inversely proportional to the amount of lines you code?
🐰🐾 سمیه
😂
Please send me a message 🙏
🐰🐾 سمیه
It's my virtual number, So I can't
🐰🐾 سمیه
Come on😶
Daniele°
😂
Ибраги́м
Anonymous
目前学习java好还是c++好呢
Anonymous
Is it good to learn java or c++?
🐰🐾 سمیه
Hmmmm the restrictions?
I think it's a server issue.
Saranraj
very...very....sorry
Saranraj
I've changed it
Daniele°
3. Another reason to hate C.
C is a big macro assembler. what did you want to wait for?
Pie 🧩
Hello
Pie 🧩
How are you all developer
joel
I'm good
joel
you
Pie 🧩
Fine
Pie 🧩
Where are you from ?
joel
that's not necessary, is it?
Pie 🧩
Ohk
Dima
I bet you all are from india
Dima
BinaryByter
Are you... needing to sleep?
BinaryByter
C is NOT an assembler with macros
Wim
Get an other education?
BinaryByter
Get an other education?
😂😂😂😂😂😂😂😂
Sunny
Actually I'm learning
Jussi
It is not allowed to ask help for homework
Sunny
Ok
Jussi
:-)
BinaryByter
Anonymous
I bet you all are from india
How you know that.. Well that's right
🐰🐾 سمیه
how can I enable the top section in gdb
Daniele°
C is NOT an assembler with macros
old C man he taught me so
🐰🐾 سمیه
it's just a coomand
🐰🐾 سمیه
besides my head is going dizzy
Anonymous
C is NOT an assembler with macros
That statement can be seen as: The thing you write, it translates. Nothing more, nothing less
Daniele°
That statement can be seen as: The thing you write, it translates. Nothing more, nothing less
the first compilers did not apply big optimizations, and the result was just 1:1 with the code written in C
Wim
old C man he taught me so
Old C man here now knows why that old C man doesn't know what the heck he's doing
Anonymous
the first compilers did not apply big optimizations, and the result was just 1:1 with the code written in C
Vbextreme old italian stallon (as he states, I mean, for true he is old but I would doubt about he being the stallon as he states)
Wim
Anonymous
Hi
Anonymous
I need a suggestion
Daniele°
Wim
Probably not IF WORD$ = "SECRET" THEN
It pushes both string descripter offsets and calls a compare, so would C, see any difference?
BinaryByter
BinaryByter
oh sorry
BinaryByter
I thought you did
BinaryByter
😂
Daniele°
Same assembly
BinaryByter
in the meantime im (read as: wim writes) writing a bootloader in 200bytes
BinaryByter
Daniele°
what?
Size of output?
Daniele°
Or size of code?
Anonymous
what?
he means the size of the object code
Anonymous
And an hello world (heavily system dependant) can be done in less than 100 bytes (executable code only)
BinaryByter
You can write bootloader < 10bytes
the bpb is already bigger than that