ruffsl@programming.dev to Programmer Humor@programming.devEnglish · edit-230 days agoEvery goto in the Linux kernel / Just another day on the linux-kernel mailing listyoutube.comexternal-linkmessage-square19fedilinkarrow-up182arrow-down11cross-posted to: linux@programming.dev
arrow-up181arrow-down1external-linkEvery goto in the Linux kernel / Just another day on the linux-kernel mailing listyoutube.comruffsl@programming.dev to Programmer Humor@programming.devEnglish · edit-230 days agomessage-square19fedilinkcross-posted to: linux@programming.dev
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up8·29 days agoIn civilized languages tail recursion takes care of this for you. 😁
minus-squarebss03@infosec.publinkfedilinkEnglisharrow-up5·29 days agogcc can do tail-call optimization in C, and sometimes in C++. It doesn’t even have to be a recursive call, tho I do think it might depends on the calling convention.
minus-squarebitcrafter@programming.devlinkfedilinkarrow-up3·29 days agoOh, cool! I did not know that.
In civilized languages tail recursion takes care of this for you. 😁
gcc can do tail-call optimization in C, and sometimes in C++. It doesn’t even have to be a recursive call, tho I do think it might depends on the calling convention.
Oh, cool! I did not know that.