BinaryByter
"hey, they emit mov eax, <char> .. I should do that too"
BinaryByter
Wim
lol I figured 😂
BinaryByter
😢
Wim
Ludovic is right though on the first C++'s
BinaryByter
Wim
C++ was once incepted to add OO to C but did walk its own path after that
BinaryByter
luckily 😂
Wim
Still many don't even know that and talk all kinds of bullshit
BinaryByter
Ariana
BinaryByter
😂
Wim
We have people talking about OO in C; its a bunch of glue instead, surely it might do something like-ish, but its far from it
Ariana
just make sure you're ok with your wifi being down every few seconds with me screwing with it
BinaryByter
BinaryByter
its really just to show off
Wim
But hey mr vbextreme says more crap, right? He's doing a 10 byte bootsector on atmel in C but can't boot an X86 from a legacy bios in it
Wim
But he's sure he could do better in C 😂
BinaryByter
Wim
Thats what he was asking last time I asked you to re-phrase your question
BinaryByter
holy moly... gotta fit a full libc in those 10 bytes
BinaryByter
😂
Wim
Wait what, I was asking
BinaryByter
wait, libc isnt there in the freestanding
Wim
He doesn't understand even that
Wim
Besides, he thinks Siemens knows best
BinaryByter
BinaryByter
Wim
Building a way too expensive platform around dirt cheap chips because people are stupid enough to buy 😂
Wim
But lets not be it about him
BinaryByter
Wim
Most don't know what they're working with
Wim
Ludovic at least shows insight
BinaryByter
Please Mention Secrets
PMS
Wim
PMS -> Gerneral state of being to many females
BinaryByter
yes :D
BinaryByter
unfortunately 😢
Daniele°
Daniele°
Daniele°
BinaryByter
Is Always optional
okay, then show me that C can do a full hello world in less than 50 bytes
BinaryByter
that runs on linux
Wim
(Which ASM variant would you like?)
BinaryByter
I'll take... umm
Daniele°
BinaryByter
BinaryByter
so many nice flavours
BinaryByter
maybe Phillip's assembler dialect, since its a bit less known. Also, I know the guy who implemented the compiler personally
Wim
bios, ah,0eh or 13h; kernel using int 80h or int 21h in dos/windows/os2, direct memory writes.. the list goes on
BinaryByter
😂
not "😂". show me
MᏫᎻᎯᎷᎷᎬᎠ
I think it's a good practice to learn the language just by watching you guys spit some C++ bullets here
BinaryByter
BinaryByter
thanks :D
MᏫᎻᎯᎷᎷᎬᎠ
Thank YOU
BinaryByter
in C++?
BinaryByter
show me the program code :D
Daniele°
BinaryByter
?
Daniele°
Daniele°
Entry point on Linux is _start
BinaryByter
Daniele°
BinaryByter
Nope
Daniele°
Yep
BinaryByter
.x64
START SEGMENT USE64
BUFFER_SIZE equ 100000
_INIT PROC NEAR
_INIT ENDP
END_PTR equ $
START ENDS
END _INIT
compiles well under linux
Daniele°
Naturally crash because you Need to exit
BinaryByter
😂
Daniele°
asm bla bla bla int 0x80 bla bla bla
BinaryByter
BinaryByter
Wim
_start neither is a linux thing at all either, its a GNU thing
BinaryByter
[maximilian@localhost vbextreme]$ gcc ./t1.cpp -nostdlib
./t1.cpp:1:9: error: ISO C++ forbids declaration of ‘_start’ with no type [-fpermissive]
_start () {
^
[maximilian@localhost vbextreme]$