[Ilugc] .a-tip-a-day (patch - apply diffs and act as inverse of diff)

  • From: sundaram@xxxxxxxxxxxxxxxxx (Rahul Sundaram)
  • Date: Wed Sep 30 14:44:55 2009

On 09/30/2009 02:29 PM, Manvendra Bhangui wrote:

The equivalent program in perl would be
#!/usr/bin/perl
print "hello world\n";

(just two lines instead of 5 lines in the 'C' program. But an strace on both
show
the C programs does the same job with 23 system calls
the perl program takes 160 system calls to just print the line "hello world"
on screen

Sure and writing in assembly language will probably use even few sys
calls. However I think the focus is on the wrong place in this argument.
Programmer's time is often more valuable than machine time.

Rahul

Other related posts: