On Mon, Mar 11, 2013 at 6:25 PM, Srinivasan Sundararajan <[email protected]
> wrote:

as you might have noticed, most of the students use turbo c, though i keep
> hearing from many lecturers that they have to motivated to shift to gcc.
>
>
In all the recent Workshops / FDP which I do in colleges, I give preference
for training them on GCC and GNU Toolchains (gcc, g++, gdb, make, gcov,
autoconf, automake etc).

The interesting fact is, both the staffs and students are getting attracted
when demoing GNU tools

Instead of compiling a C program directly through GCC and creating
executable, I demo the various stages during the GCC compilation process
separately like C Source code -> Pre-processed code -> Assembly Code ->
Object File -> Linking -> Executable

Illustrating with an example of the above process.

program: hello.c

#include<stdio.h>
int main(void)
{
  printf("Hello GCC\n");
  return 0;
}

$cpp hello.c > hello.i (here hello.i is a pre-processed file)

$gcc -Wall -S hello.i (creates assembly file hello.s)

$as hello.s -o hello.o (creates object file)

$ld <linking the object file with 'C' run-time libraries> (or for
simplicity)

$gcc hello.o (creates a.out, the final executable)

When the above process is demonstrated, even the faculty members are
getting excited to know about the power of 'gcc' compiler.

Similar case with make / Makefile also.  Once they understand the
importance of make, they automatically create Makefile and simply do 'make'
to compile their 'C' programs.

I have seen good results on the above things and continue to do so in
future programs.

as usual, a sizeable number of lecturers themselves need to be
> educated/encouraged.
>

I am maintaining a separate list to keep connected with all HOD's / College
lecturers in Tamilnadu.

http://www.freelists.org/post/linuxpert/FREE-Printed-Books-on-Open-Source-Software-and-Development-Tools-for-All-Engineering-Colleges-in-Tamilnadu

So far 70+ engineering colleges have applied for these books and we are
already in the process of distributing the same to colleges.

And the students rarely listen to the teachers -- but talks from experts
> like you might have a bit better impact.
>
>
Definitely yes.  That's why I have planned to do atleast 50+ workshops in
this year.



> i presume you must already be doing it -- but can make some additional
> pitch to use the foss alternatives, esp., gcc, libre office, etc.
>
>
Believe me, today I went to 7 engineering colleges and all HOD's expressed
their interest to switch most labs to Linux.

-- 
S. Baskar

Twitter  : http://twitter.com/linuxbaskar
LinkedIN : http://www.linkedin.com/pub/baskar-selvaraj/21/881/b29
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to