Posts Tagged ‘compile’


Compile with /MP flag on my system

The most interesting feature I like in VC 2008 is the parallel build capability.

The /MP option can reduce the total time to compile the source files on the command line. The /MP option causes the compiler to create one or more copies of itself, each in a separate process. Then these copies simultaneously compile the source files. Consequently, the total time to build the source files can be significantly reduced.

Continue Reading...

September 8th, 2009 in Programming | No comments yet


inffas32.asm: error A2070: invalid instruction operands

I got the following errors while compiling zlib on windows with Visual studio 2005:

1>inffas32.asm(649) : error A2070: invalid instruction operands
1>inffas32.asm(663) : error A2070: invalid instruction operands
1>inffas32.asm(720) : error A2070: invalid instruction operands

these errors are due to an issue with Microsoft Macro Assembler ,included with Visual C++ 2005.it refuses to assemble a MOVD instruction with a memory operand with an implied size, and requires that "dword ptr" prefix the memory operand.

to fix these problems,simply addingDWORD PTR’ before the operands:

Continue Reading...

movd mm5,dword ptr [esp+4](649)
movd mm7,dword ptr [esi](663)
movd mm7,dword ptr [esi](720)

April 30th, 2009 in Programming,Windows | No comments yet


Compiler warning C4022 when building OpenSSL 0.9.8e On Windows

I got the following compiler error when building OpenSSL-0.9.8e in Windows environments with Visual studio 2005:

.\apps\enc.c(380) : error C2220: warning treated as error – no ‘object’ file generated
.\apps\enc.c(380) : warning C4022: ‘BIO_ctrl’ : pointer mismatch for actual parameter 4

Continue Reading...

August 25th, 2007 in Programming,Windows | 3 comments


Compile the new 2.6.17 Linux kernel for IBM ThinkPad T43

I just finished compiling the newest 2.6.17 Linux kernel and I am getting much better performance. In what follows, I will show you how to compile and configure the latest kernel for IBM Thinkpad T43.

Before you begin, you will need to get a kernel
Download the 2.6.17 kernel and it’s performance patch: The 2.6.17 kernel
Latest Kernel Patch

1. Install needed utilities to configure the kernel
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev
2. Now we are going to move the kernel and unpack it.
sudo cp linux-2.6.16.tar.bz2 /usr/src
3. Now we are going to move to /usr/src
cd /usr/src
4. Now unpack it:
sudo tar -xvjf linux-2.6.17.tar.bz2
5. Rename the folder:
sudo mv linux-2.6.17/ linux-2.6.17ck1
6. Now we are going to remove the link to the linux directory:
sudo rm -rf linux
7. Make a new link to the new kernel:
sudo ln -s /usr/src/linux-2.6.17ck1 linux
8. Move to the Linux directory:
cd /usr/src/linux
9. Make yourself root:
sudo -s -H
10. Apply the performance patch:
bzcat /home/$USER/patch-2.6.17-ck1.bz2| patch -p1
11. Now we are going to import your current kernel configuration:
uname -r
12. Now import it: Make sure to replace the kernel version in this following command from the one from uname -r.
sudo cp /boot/config-2.6.14-ck1 .config
or you can download my .config file,full optmized for IBM T43

13.Configure the kernel:
make xconfig
14. Let’s build the kernel: Make sure that you are in /usr/src/linux with full root access. Make sure that you are. This will build a debian file that you can install.

Continue Reading...

August 24th, 2006 in linux | 6 comments