1
\$\begingroup\$

What sub 100 column line of C code(no macros) creates the most ASM instructions? This is with GCC 10.2 -O3(but if there is something interesting on another compiler with -O3 one that is fine too). If a function is called the lines in the function also count. The most ASM generated within those params wins. Also including headers and defining main do not count.

edit: when I said columns I meant characters (not including indentation) eg: printf("test"); is 15 columns

\$\endgroup\$
14
  • 1
    \$\begingroup\$ Welcome to Code Golf! For future reference, we recommend using the Sandbox to get feedback on challenge ideas before posting them to main. \$\endgroup\$ Apr 3 at 19:26
  • \$\begingroup\$ Should I remove and do that now? I was unware. \$\endgroup\$ Apr 3 at 19:26
  • \$\begingroup\$ The problem is that we currently have a bug preventing users with 1 reputation from posting in the Sandbox, otherwise I would say yes. For now though, I'd suggest leaving this challenge up on main and being extra attentive to any feedback and suggestions that other users leave (unfortunately, I'm not too familiar with C/ASM, so I can't provide any specific help), so that if there's anything unclear, it's quickly fixed :) \$\endgroup\$ Apr 3 at 19:29
  • 2
    \$\begingroup\$ Welcome to CGCC! This is a very interesting challenge, and I think this has potential to be very cool. It's not quite clear enough in its current state, so I have closed it; however, with improvement, I will be more than happy to re-open it. I'm excited to see where this could go! \$\endgroup\$
    – hyper-neutrino
    Apr 3 at 19:52
  • 4
    \$\begingroup\$ Isn't this a duplicate of Build a compiler bomb even if it were clarified? \$\endgroup\$ Apr 4 at 1:13