In the simple example considered above (see example with gcc and example with VC++) there were just a few commands to execute. A real project may contain much more files and libraries. A conventional way to automate build is to use make that reads the description in makefile and then executes the command accordingly. Let [...]
Archive for March, 2008
Filed under: Tools
Social Tagging: gcc • make • msvc
A compiler converts a code to an object file and then a linker links different object files with each other. As a result, it is possible to mix programming languages in one project. What is just necessary is to know conventions accepted in different programming languages. Below there is a short description on how one [...]
We need a text editor to edit files. It is assumed that you already have one. If not, I could recommend you Vim that is available for free at http://www.vim.org/. In my view it fits well the Unix environment. It is easy to install Vim. Just download self-installing executable gvim71.exe and run it. When it [...]
Computer related things are changing unbelievably fast. I have started programming about 30 years ago on a Soviet supercomputer BESM-6. Thanks to modern technology you can still see what it looked like now live at http://www.mailcom.com/besm6/runit.cgi My first program was similar to that below. *name test *ftn program main a = 2*2 print 10, a [...]
The goal of this text is to compare the compilation process between Visual C++ and gcc (see Compiling and Linking: Simple Example with gcc). The process is quite similar but behavior of the tools in Visual Studio is a bit different. The librarian in Visual Studio is link and the compiler is cl. The sample [...]
It is possible to run Microsoft compiler from console: cl, link, lib, and other tools. However, I find the cmd environment (command tool supplied with Windows) rather primitive and prefer to work under Cygwin environment. Here it is also possible to use command line tools from the Microsoft Visual Studio but it is necessary to [...]
The goal of this text is to make a small introduction to the compilation process. We will make a library and then link the application code with the library. It is assumed that the librarian is ar and the compiler is gcc. The aim is to obtain rough understanding what steps will be necessary when [...]
Filed under: Tools
Social Tagging: Cygwin • gcc • make
Cygwin (http://www.cygwin.com/) is software that allows us to bring Unix flavor to Windows. This is a step-by-step tutorial on how to install Cygwin along with gcc and make. Provided that the number of packages to install is close to described below, it will be necessary to download about 35 Mb of files from Internet. The [...]
Introduction Fetching and unpacking Compiling without BLAS Compiling with ATLAS Compiling under MinGW Using UMFPACK with Microsoft Visual Studio Introduction UMFPACK is Unsymmetric MultiFrontal direct solver for sparse matrices developed by Prof Timothy A. Davis: http://www.cise.ufl.edu/research/sparse/umfpack/ The goal of this chapter is consider how to compile UMFPACK under gcc. I will use gcc under [...]
RSS