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/
Related
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.)
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 want to compile openssl mostly RSA, DSA and HMAC in windows kernel driver. Basically i want to extract the given algorithm and compile only them. Has it been done? or are there any alternates?
Please explain what you mean by "mostly RSA, ..." and "in windows kernel driver".
OpenSSL is cryptographic software. The algorithms within are fragile, in that minor mistakes in how they are used can have catastrophic results. So, unless you really know what you are doing (and in that case you wouldn't be asking here, now would you?) to keep your fingers firmly seated in your pockets.
Perhaps NaCL is nearer to what you need? Or some other cryptographic library?
I'm doing exactly what you're saying: extracting the algorithms I need from OpenSSl to a small and compact library. It can be done and it's, according to my experience, a very painful process. You'll end up being forced to include more modules than you expected. Due to lack of documentation, you also need to go through the source code to understand module functionality most of the time. My suggestion is: don't do this unless you have no alternative.
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'm quite interested in getting "stuck in" to some Unix source code, say Fedora or Ubuntu.
In practical terms, how would one "re-write" some part of the Unix OS. I presume you would need two machines, a dev machine and a tester? Would you need to re-install the OS on each modification of a .c file? How could I edit the file and re-compile it etc?
What resources are there for knowing which parts of a Unix OS/Kernel relate to which C files (I presume there is no C++) and how to find them?
Thanks in advance for help
ps my motivations for doing this are to eventually be able to learn more about the lower-level fundamentals of the Unix OS, so that I could try and get into programming high freq trading systems.
I think it would probably be a good idea to have some kind of virtual machine to experiment with, that way you could do a snapshot apply your changes but still be able to go back without much effort. Also it allows you to simulate communication between PCs in a simple fashion.
First you need to know what you're looking for. You want to download and look at the: linux kernel. Which is the same for Fedora and Ubuntu (and all other GNU Linux distributions). Second, you might want to start with something easy, like downloading the kernel, configuring and compiling it and booting it. Once you do that you can move up from there.
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'm currently delving into learning C and whilst I'm not far into the process, I'd like some examples of fully-functioning windows applications complete with source code that aren't too complicated to study - things like calculator/notepad?
Anybody got any links to where I might find a good few examples beyond the 'converting kgs to stones' or calculating speed from time and distance?
Would certainly help my inspiration. :D
Thanks.
Did not answer exactly what you asked,but ...
Tring to solve some Euler problems is a good way to familiar with the language features.
http://projecteuler.net/
If you want examples of existing C projects, browse github/sourceforge.
I wonder though - why do you want to learn C? Seeing as you're new to C, I'm assuming you might actually mean C++.
What background are you coming from and what do you want to achieve? If you want to try some algorithms, pierr's answer is a good one to get used to any language. Also, if you're interested in learning the language detail/algorithms, avoid shiny UI temptation and stick with the command line.
If you're starting programming for the first time, glenn's answer is a good start.
If you're just interested in Windows application development, this MS tutorial looks like a good start.
If you are moving from another language, look for a specific guide (e.g. Java to C++) to fill you in on the details quickly.
There are multiple websites with numerous tutorials:
C programming
C tutor
Also, be sure to look into pointers:
something on pointers
Hope this helps
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 read a lot of books about C/C++ in Linux and write simple programs. Now I want to try myself with some project. What you can recommend to? (Sorry for my bad English)
If you don't know what to do and just want to get a little experience, try implementing the towers of Hanoi, it's a classical programming exercise (the Wikipedia article might seem frightening at first sight, but the actual algorithm is dead-simple and you'll find lots of material about it online, even a lot of sample implementations). First, start with a text-only solution that just prints numbers. Then, try to "draw" the towers using ASCII art. You can also do this with a GUI, but as a novice it's easiest to start with text-based version.