LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2012, 10:40 PM   #1
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13
Blog Entries: 1

Rep: Reputation: Disabled
how to write the compiler source code


one day before i am given one interview in that they asked question like this
question:the marvel written the source code with out proper intendation.you have to write a c/c++ code for take a source file and when you got open brace then next line should be some tab after and also if ,else and while after one tab space..??
please any one help me how to write a c code..

how to write the compiler source code??
 
Old 10-19-2012, 02:10 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
You do realize that the interview was to find out if you know how to do that on your own?

Just to also clarify, I don't think they were asking for compiler code, they were asking for a parser and reformatter which would take something like:

int main(int argv,char**argv){int i;if(argv<2){printf("Usage:...\n");return -1;}i=argv[1];printf("Argument: %d\n,i);return 0;}

And reformat it so that it was spatially readable within the guidelines of a coding style document.

They're also likely looking for how you approach that problem intellectually. What's your first "take" on the problem, what questions do you have about the task you're being asked to complete, and how fast you "get" their whole point.

Yes, some interview questions are stupid, pointless, or a pet peeve of the questioner; in fact many of them are self serving. But if you claim to have mastery of the C-language, then .... they're likely going to ask you touch C-language questions. And if you claim to know it a bit, then they're likely still going to ask you C-language questions so they can see how much you do know.

If you're really interested in learning the language better, read up on references. Take this interview as a learning experience, go further and ask what they are looking for really, and do your own experimentations so that you actually learn the language by using it. Doing just "Hello World" does not mean you know C, and I'm not saying that you don't know it at all, just saying that this interviewer is trying to gage your knowledge as best as they can and they likely have several candidates. (I always thought the proper spelling was gauge, but the spell checker told me 'no')
 
2 members found this post helpful.
Old 10-19-2012, 03:48 PM   #3
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Question device drivers

i have drivers lab 2.6.34.12. tar file.
i extracted the file.when i am installing that it is asking the .config file..i am not understand the why the .config file..is it the necessary.if any one having the config file and drivers lab tar file please share the link and how to install on the open suse 12.1

and also

how to install glut(graphics library) in open suse.
please tell me the the basic book for learn graphics programming for beginners.
 
Old 10-20-2012, 02:27 PM   #4
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Quote:
Originally Posted by durgam anil View Post
please tell me the the basic book for learn graphics programming for beginners.
Michael Abrash's Graphics Programming Blackbook is my favourite gfx. book of all time. It's available for free on the net.
It dates back to DOS days, so you'll probably have to find an old machine from somewhere.
 
1 members found this post helpful.
Old 10-21-2012, 12:57 AM   #5
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
how to install glut in the open suse please any help me..
 
Old 10-21-2012, 08:59 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,514

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5 : Suse 12.1 ..

1) su
2) zypper in freeglut-devel
 
1 members found this post helpful.
Old 11-14-2012, 12:44 PM   #7
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
i am downloaded avr8-gnu-toolchain-linux-x86 file and i extracted the file.but i unable to compile the files.when i am giving make command it is not working..please help me how to work with avr dude. and tel me x86 avr works on 32bit linux.
 
Old 11-14-2012, 12:50 PM   #8
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
sensor node code in c language

please help me how to do the sensor node code in c language ..give me guidance.

in a sensor node having micro controller ,adc,power supply,external memory and physical sensors
Attached Thumbnails
Click image for larger version

Name:	300px-Sensornode.svg.png
Views:	13
Size:	7.8 KB
ID:	11235  
 
Old 11-14-2012, 01:25 PM   #9
durgam anil
LQ Newbie
 
Registered: Oct 2012
Location: banglore,india
Distribution: open suse,redhat,ubuntu
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
sensor node code in c language

this is sensor blocks code in c language i unable to compile this code in with the my avr tool chain so please any one help to what is the steps to make the avr toolchain to work..
Attached Files
File Type: txt sensor_node.txt (84.8 KB, 18 views)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling 8 bit code using gcc compiler ravi_chobey Linux - Embedded & Single-board computer 6 10-18-2012 08:56 AM
Cannot write a int8 on a LCD from a PIC18F4550 using CCSC compiler jeanCarloMachado Programming 2 01-06-2012 09:46 AM
Need to compile ANSI-C code, is there a compiler on FC8 for it? Azazwa Linux - Newbie 4 08-26-2009 07:33 AM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
Error - no gcc3 or cc compiler when installing source code bshelton Linux - General 1 09-16-2003 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration