How to navigate huge code base ~1GB on windows [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
The code pertains to network switch's ROM and the total memory requirement for default, un-parsed code is around 1 GB. We use Cscope to browse the code in Linux, which is totally great, it doesn't takes time in building cross reference and very easy to use. I want to have the same experience on Windows.
Sadly no other similar question on SO answers my query. The code is mindbogglingly huge, and what surprises me is how Cscope manages to handle it so easily while no other tool on Windows does. I've tried Source Insight, Source Navigator, and many other tools but they take forever to build cross reference, ultimately I have to end their process.
Is there anything on earth which does on Windows, what Cscope does on Linux?

I have not used cscope on windows, but you can try the downloads available on this page
Another possible way as given in cscope support is using cscope (Linux package) under Cygwin.

Related

Using the C Preprocessor for code cleanup [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a large, legacy C code base to look at, and there are lots of #ifdefs and #ifndefs throughout the code, mostly to maintain backwards compatibility with environments and operating systems that now no longer exist.
Is there any preprocessor-like tool that I could run this code through, that would take in all these C (mainly .c and .h, some .cpp etc) code and output set of source files getting rid of those blocks of code that would otherwise never be relevant? That would certainly make browsing the code easier for me, in addition to, perhaps cleaning it up in the in the long run.
You can use coan for this. Read the "About" page and the man page.
The spin command can output your cleaned up sources under a directory of your
choice.

how to create installer package [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I have developed a program which retrieve data from windows registry and some other functionality along with it.
Now I want to make an installer and distribute it.(I have an option of distributing .exe but I don't want to use it)
now my problem is how can I make an installer like we get of professional software.
exp-antivirus,adobe etc
please help..
Thanks
Raghav
Microsofts currently preferred way (please note that this is subject to change) is WiX (Windows Installer Xml).
http://wix.codeplex.com/
If you don't like scripting in WiX or don't have the time to learn you always have these alternatives.

Lite (ansi c 89) os for custom cpu? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
A friend of mine created a 16-bit stack based CPU on an fpga and I've been developing an ANSI C 89 compiler for it. He needs a file system and networking so he's now working on an os for it based on minix, but he's doing it on a pascal based compiler he wrote and it's going to take a while. Ideally we would like to be able to use our C compiler to build the minix source in it's entirety but I am a few weeks away from finishing the compiler and I'm sure it will be a while before it's up to the task. I would like to know if anyone has had any success porting minix to a custom CPU and what we should look out for, or if there are any alternative open source os's that are lightweight that we should be considering. Keep in mind that this is a custom c compiler so I don't offer any of gcc's toolchain bells and whistles.

What are some common C libraries in Linux to use a CD burning device? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am interested in creating software that uses a CD burning device. I will be writing this code in C under Linux and compiling using GCC.
libburn as the name suggests ;) (and other friend-libraries from the same site). It's used in brasero (GNOME), xfburn (xfce) and cdw.
And well, that's it. Really, I'm not aware of any more libraries.
In fact, it was more common to wrap command-line cdrecord (from cdrtools or cdrkit) but they never provided a shared library; it was just an old unix practice on running external executables (and then parsing their output, ugly). AFAIK it's still used in k3b and a few minor tools but the general trend is migration towards libburn.

Multi-threaded debugging tutorial for GDB and C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anybody know of a good GDB (or other Linux debugger) tutorial for debugging multi-threaded C code? I'm looking for one that includes simple examples.
Googled it.Found some links.They seem helpful :
redhat.com -Debugging programs with multiple threads
Multi-threaded Debugging Techniques
In supplement to the various gdb tutorials out there I would really advise using "watch" alot in multi-threaded debugging. It will break on read/writes to memory/variables rather than specific lines of source.
When debugging multi-threaded C code using GDB, I usually refer to the entry in the gdb manual on "Debugging Programs with Multiple Threads". You can find it here.
It's not really a tutorial, but it does have a couple of examples that should get you started.
Above links broken, So, you can use the following link:Debugging Programs with Multiple Threads

Resources