If you write ruby and want TCO put this at the top of your .rb file:
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}