Re:(Debugging Story) Inline Assembly Dangers
by nynx on Monday June 10, 2024 @12:15AM
(#40630068)
Uh, why is this not a compile error? I’d expect the string to be concatonated, which would result in an invalid program.
[ Parent
| on HN ]
Re:(Debugging Story) Inline Assembly Dangers
by LegionMammal978 on Monday June 10, 2024 @12:18AM
(#40630080)
The first string is a comment, so all the strings after it just get appended to the comment text, until it finally hits the first newline. Quite an insidious mistake.
Re:(Debugging Story) Inline Assembly Dangers
by dkersten on Monday June 10, 2024 @12:19AM
(#40630089)
The strings are concatenated, it’s just that the first line was a comment, meaning the compiler/assembler saw all the next lines as part of the first. Comments don’t cause compiler errors, so no error here…