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 _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc