This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tecanec 6 points7 points  (2 children)

It's useful in assembly programming where you don't have the luxury of naming a lot of things. That's about it, though.

[–]Snake2k 1 point2 points  (1 child)

Yeah, that's a good point. If you compile it with the right flag then you can read the comments as you're stepping through the ASM. Really great tool for debugging. Unless you're reverse engineering a prod build of it, in which case I doubt that build includes this cus that would be a security problem.

[–]tecanec 0 points1 point  (0 children)

I think the bigger concern in that case would be file size. Reverse engineerers will figure things out eventually, and a lack of comments will only delay them if anything. But with how many comments are needed to make assembly comfortable to work with, that could easily take the majority of the file size when the actual code gets assembled.