Monday, February 28, 2005

cscope: code browsing made easier

hi,
When i first looked at the source code of linux kernel, it was some c code: obscure, unintimidating, and wierd ;-).
Then i came across this "cscope", a boon for all code browsers.

Cscope is a developer's tool for browsing source code. It has an impeccable Unix pedigree, having been originally developed at Bell Labs back in the days of the PDP-11.
Cscope was part of the official AT&T Unix distribution for many years, and has been used to manage projects involving 20 million lines of code!
The fuzzy parser supports C, but is flexible enough to be useful for C++ and Java, and for use as a generalized
'grep database' (use it to browse large text documents!).
Has a command line mode for inclusion in scripts or as a backend to a GUI/frontend. Runs on all flavors of Unix,
plus most monopoly-controlled operating systems.
The tutorial would make you clear how to use cscope.

Its features include :
  • Allows searching code for:
  • all references to a symbol
  • global definitions
  • functions called by a function
  • functions calling a function
  • text string
  • regular expression pattern
  • a file
  • files including a file

Hope this would make code browsing a great place on earth. :P
Happy code browsing!!!

for more details :
http://sourceforge.net/projects/cscope/
http://cscope.sourceforge.net/cscope_man_page.html

Keep coming to this blog!!!
vg...

Sunday, February 27, 2005

The ix86 Game !!!

 The ix86 Game!!!


I was thinking what to write today, but when i was downloading
wine it asked for architecture type and gave all ix86's
We know our cpu's as pentiums, amds or powerpcs
So i thought let me clarify this issue
So here goes the "ix86 game" ..

This question came up internally, in the context of picking which binary
package to use for some modern hardware. One incorrect answer is
"non-Intel Pentiums", lead by AMD's mind tricks with numbering schemes
going back a few years. When AMD say "6", think "5" :-)

There's a cpuid database in the Linux kernel. gcc also knows about
cpus. Poking about between the two gives some answers. Here is my software
person's perspective on what these labels mean:

i386 is just what it says, one of the 80386 product lines.

i486 ditto.

i586 is all Pentiums up until but not including the PentiumPro, and AMDs
K6 series (including the AMD K6-2) and Cyrix (now VIA/EDEN.) You can add
MMX instruction optimisation to some i586 compiles.

i686 is AMDs Athlon and all Pentiums after the PentiumPro including II,
III, IV and Celeron. You can add some chip-specific optimisations to some
i686 compiles too.

http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html gives a bit of a
summary. gcc resources go into this stuff in exhaustive (exhausting)
depth.

In my experience having an i386 distribution on i586-or-higher hardware is
noticeably slower. I have never compared an i686 distro against i585 on
the same hardware but I'd be surprised if it makes too much difference.

Friday, February 25, 2005

About Free Software and Open Source

hi,
Lets start with it !!!
As we are a bunch of GNU/Linux geeks, it is our minimum responsibility to know about this.

This is only newbies and it is not my theory, i am just collecting information and sharing with you.
Here i am sharing my views with you all and if i went wrong anywhere please inform me so that i could correct them.

``Free software'' is a matter of liberty, not price. To understand the concept, you should think of ``free'' as in ``free speech,'' not as in ``free beer.''

Free software is a matter of the users' freedom to run, copy, distribute, study, change and improve the software. More precisely, it refers to four kinds of freedom, for the users of the software:

  • The freedom to run the program, for any purpose (freedom 0).
  • The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this.
  • The freedom to redistribute copies so you can help your neighbor (freedom 2).
  • The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this.
For more info http://www.gnu.org Why ``Free Software'' is better than ``Open Source''

Coming to Open Source:
Open source doesn't just mean access to the source code. Open Source Definition.
The basic idea behind open source is very simple: When programmers can read, redistribute, and modify the source code for a piece of software, the software evolves. People improve it, people adapt it, people fix bugs. And this can happen at a speed that, if one is used to the slow pace of conventional software development, seems astonishing.
Open Source Initiative (OSI) is a non-profit corporation dedicated to managing and promoting the Open Source Definition for the good of the community, specifically through the OSI Certified Open Source Software certification mark and program.

Thats all for now !!! tata !!!

vg...

Tuesday, February 22, 2005

Techie Talk

As i wrote these lines, we had a hot debate of what would be the appropriate name for my blog.
Techie vision ... or perspective from my side of what technlogy is or my experience with getting hands dirty with technology or ... oh my god so many "or"s.

My favorites include GNU/Linux, mozilla, firefox, and all those free software (open source also).
Let me start my discussion tomm with difference between free software and open source.

So stay tuned ...