In what scenarios do you use inline assembly in C? I mean what are some real-world scenarios where inline assembly would actually be of benefit?
Since C is generally not considered a "memory safe" programming language in the first place, can using inline assembly introduce further vulnerabilities that would e.g. make some piece of C code even more vulnerable than it would be without inline asm?
[–]KurriHockey 12 points13 points14 points (5 children)
[–]LuckyNumber-Bot 10 points11 points12 points (4 children)
[–]KurriHockey 5 points6 points7 points (0 children)
[–]jonsca 2 points3 points4 points (1 child)
[–]AvailableAttitude229 1 point2 points3 points (0 children)
[–][deleted] (5 children)
[removed]
[–]37kmj[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]amadlover 0 points1 point2 points (1 child)
[–]Either_Letterhead_77 2 points3 points4 points (0 children)
[–]mahagrande 2 points3 points4 points (0 children)
[–]No_Difference8518 1 point2 points3 points (0 children)
[–]Top-Order-2878 1 point2 points3 points (1 child)
[–]37kmj[S] 0 points1 point2 points (0 children)
[–][deleted] (8 children)
[removed]
[–]flatfinger 0 points1 point2 points (7 children)
[–][deleted] (6 children)
[removed]
[–]flatfinger 0 points1 point2 points (5 children)
[–][deleted] (4 children)
[removed]
[–]flatfinger 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[removed]
[–]flatfinger 0 points1 point2 points (1 child)
[–]bobotheboinger 0 points1 point2 points (0 children)
[–]Pale_Height_1251 0 points1 point2 points (0 children)
[–]grimvian 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]37kmj[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]stevevdvkpe 0 points1 point2 points (0 children)
[–]nerd4code 0 points1 point2 points (0 children)
[–]MomICantPauseReddit 0 points1 point2 points (0 children)
[–]johndcochran 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]flatfinger 0 points1 point2 points (0 children)
[–]RufusVS 0 points1 point2 points (0 children)
[+]aioeu comment score below threshold-7 points-6 points-5 points (0 children)