Lite (ansi c 89) os for custom cpu? [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
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.

Related

Clang Standard C Library [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 8 years ago.
Improve this question
I'm working with an embedded environment that has no operating system or filesystem. I'm looking for a minimal C-library with at least stdio, stdlib and math implementations - though more would be better.
The library will have to be ported as there is definitely no implementation out there for this architecture. The compiler for this architecture uses LLVM, so the library must be able to build with clang.
Can anyone suggest a good candidate? Some I have looked at already:
newlib http://www.sourceware.org/newlib/ (doesn't build with clang AFAIK)
uClibc http://www.uclibc.org/ (doesn't build with clang)
pdclibc http://pdclib.e43.eu/ (no math support)

Any C compiler to run C files? [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 8 years ago.
Improve this question
I have got some programs in C which I want to run. I have tried several different compilers such as BorlandC++, Turbo C but they don't seem to compile/run it. Some compilers don't recognize .c file and can only read .cpp files.
Can you please recommend me some C compiler and/or IDE for Windows 8 on which I can run these programs?
Those compilers you are talking about are really old. Try something newer:
Visual studio: http://www.visualstudio.com/downloads/download-visual-studio-vs
Mingw: http://www.mingw.org
Well try the gcc compiler with cygwin. It runs almost everywhere and there are tons of tutorials. I think it's the most used C compiler ever.
http://gcc.gnu.org

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 navigate huge code base ~1GB on windows [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
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.

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.

Resources