64 Bit C compiler for Windows 7 [closed] - c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am having 64 bit Windows 7 as my operating system and want to run some c programs. Is there a compiler for the same? I mean a 64 bit c compiler.

Yes, you can try MinGW-w64. It's a 64-bit distribution of GCC for Windows. I think you want mingw-w64-1.0-bin_i686-mingw_20100702.zip. This distribution is actively maintained, and GCC has quite good support for modern C.

You could use the C compiler provided with Visual Studio 2010 (or probably 2008), just set your target type to x64 and compile .c files, you will get a 64-bit EXE.

If you're looking for a development environment as well, Visual C++ (Express) might be worth a peek: http://www.microsoft.com/express/Windows/

Related

What is the latest version of TurboC? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In my college they have prescribed Turbo C, for my academics. I know it is pretty old, but I want to download the latest version of it. I have a turbo c of 1980, a DOS version.
Is any latest version available for it?
Is Borland C++ is different from Turbo C++?
There are no "latest version" of these products -- Turbo C was discontinued in 1990, and Turbo C++ in 1993. Both are over 20 years old (they may very well be older than you are!), and will only build 16-bit DOS executables which won't even run on most modern computers. They cannot be used to interact with any sort of modern programming APIs -- in particular, they cannot interact with the network, nor can they create a standard Windows user interface. Basically, you're stuck in the past.
I won't go quite as far as to say that you should find a better school. But you should keep in mind that what you are learning will be almost entirely irrelevant to your employment -- a lot has changed in the last 20 years, especially for C++. (The C++ STL wasn't even fully standardized in 1993, so there will be some significant differences even there.)

Need to write call stack in running program in C [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to print a call stack in log file in a running program (in C) as I need to check the flow,
I have to send traces to other environment and I can't debug, Is there any way to do it in C.
If the platform is linux (and I believe in OSX too), you could use backtrace and backtrace_symbols to achieve what you want.
As per the notes section of backtrace
The symbol names may be unavailable without the use of special linker
options. For systems using the GNU linker, it is necessary to use the
-rdynamic linker option. Note that names of "static" functions are not exposed, and won't be available in the backtrace.

How to compile and run C code? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have purchased The C Programming Language ANSI C Version book for learning C. In that, there is no instruction for setting up the environment for developing the C programs.
Please help me how to compile and run the code explained in the book.
EDIT : I have Windows 7 installed as the OS"
You should use an IDE (Integrated Development Environment). I've chosen Code:Blocks a long time ago and I am still happy with it. Alternatively you can use NetBeans, Eclipse, DevCpp, ... There are a lot of IDEs for C or C++ available.
If on Mac/Linux, you can simply use make myprogram (in a terminal) to easily compile a single-file C program where the source file is called myprogram.c
For more complex programs with several source files, system dependencies et c, it quickly gets much more complex. Use google to find the basics of GCC, the default compiler on UNIX systems.
If you're on Windows, you could either use the Visual Studio from Microsoft (excellent, but not free) or Eclipse with CDT.
This provides you a full IDE with nice debugging support.
However, if you don't want to use an IDE but learn to build programs from scratch, cygwin would be an option including GCC and Make.

Compiler Design Help [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Are there any lexical, syntactic, semantic analyzers and optimizers available for download with the source code, preferably in C/C++...???
Do you want a C compiler? Yes there are so many available. You might wanna start with gcc.
I would take a look at the LLVM project. If you're looking to build a compiler of your own, targetting this architecture is quite a good idea. LLVM itself has it's own intermediate representation for assembly syntax, for which many languages, including C and D already have frontends.
You might also want to take a look at this thread from a mailing list I am part of which discusses a number of "language backends" including Parrot etc; basically a set of processors that bring languages like C, C++, Python etc down to a common level.
I am not nearly expert enough in this area as I'd like to be, but these technologies appear to be getting the experts excited. I am seriously considering getting up to speed on them.
Your question is very poorly formed. You should have googled for this.
Assuming you're writing your compiler in C (based on the tag), there's flex, quex and ragel.
To help you write your parser, there's bison.
You can Check out the Java Compiler source code:
http://openjdk.java.net/groups/compiler/

how do you run a c program in cmd [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I've opened the cmd in windows and I've created a directory by using md command. After that I've opened a text file via notepad <name>, wrote my program and gave .c extention while saving the file.
How can I compile and run my C program to get an output? I've also other programs in my directory: how can I create .exe files for all of them?
Free (beer-free, not necessarily speech-free) C compilers for Windows include (from memory so there may be others):
MinGW (Minimalist GNU for Windows)
MSYS
Cygwin
Eclipse CDT (which uses GNU under the covers I think)
Borland C++ (from their BDN museum site)
Visual C++ Express
Maybe this c compiling handout can be of any use.
It shows all the steps needed to create a c based executable file.
You need a compiler - are you using Visual Studio? GCC? The compiler you are using should come with some simple setup instructions to help to get you going.
I would recommend if there is no reason to use MS windows, try linux.
http://www.ubuntu.com/testing/intrepid/beta
The development environment is free.

Resources