Re:Looking at Assembly Code with GDB
by anitil on Tuesday June 28, 2022 @09:25PM
(#31915382)
It's compiled with a C++ compiler ('_Z2f2i' in the disassembly) and the function name is 'f.cpp', so I suppose it's in the 'C is a subset of C++' part of C.
[ Parent
| on HN ]
Re:Looking at Assembly Code with GDB
by khoobid_shoma on Wednesday June 29, 2022 @07:32PM
(#31927036)
Still that's C code. Code is an input to the compiler. So, I would not call the code differently just because later a C++ comiler is used. In C++ code, we expect C++ specific features be used.