Export or edit this event...

pdxbyte users group (C/C++/Assembly)

New Relic
111 SW 5th Avenue, Suite 2700
Portland, Oregon 97204, United States (map)
Public WiFi

Access Notes

Check in at the security desk to get access to the 27th floor. This usually isn't required for official events and meetups.

Venue moved from 28th to 29th floor in July so push the right button in the elevator.

Website

Description

Tail-call optimization in gcc

Functional languages like Scheme, Haskell and OCaml are commonly known to do optimization of tail-call recursive functions, but did you know that gcc also does TCO if you specify -O2 or greater? We'll take a look at what it means for a function to be tail-call recursive as well as look at an example and the generated assembly code with and without TCO. If there's time I'll discuss how to turn a recursive function into a tail-call recursive one.

Bio: Phil Tomson has been getting paid to program for well over 20 years now. Before that he did hardware development. The longer he does software development, the more he realizes there is to learn about software development.

Share