Tutorials, solutions and tips on algorithms and programming.

Headline
[May 21, 2013 | Views: 0]
How to get the assembly code for OCaml code generated by ocamlopt? : How to get the native assembly code (e.g. x86-64 asm) for OCaml code generated by the native ocamlopt compiler? Continue reading: How to get the assembly code for OCaml code generated by ocamlopt? .
Read the full story »
[Dec 21, 2012 | Views: 3,972]
When do debugging and optimization, we sometimes need to generate and investigate into the assembly generated by the compiler. Generating a mixed source and assembly list will help the programmer a lot for debugging and optimization. gcc can achieve this by working the the assembler. Generate assembly list mixed with the ... read more »
[Nov 27, 2012 | Views: 1,120]
Vim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy. A list of basic text formatting commands in Vim: = is an operator that formats/indents text. i{ is a text object that specifies the surrounding ... read more »
[Nov 27, 2012 | Views: 950]
I begin to use vim for programming. I like the tools that focus on one function. I used to use emacs. But I think I like vim more. For debugging, I use gdb. But I use the front end cgdb. I can see the codes with the cursor when debugging. I ... read more »
[Nov 27, 2012 | Views: 936]
read more »
[Nov 27, 2012 | Views: 817]
One cool feature of gcc is that it can inline assembly into C code. With inline assembly, the programmer can precisely control the execution of the processor, such as forcing variables to use registers, getting special processor state efficiently, and writing critical efficient code in assembly by hand. I compile a ... read more »
[Nov 27, 2012 | Views: 815]
This post collect the reference resource for x86-64 (also know as Intel 64, AMD 64) ISA / assembly language programming. x86-64 is a 64-bit extension of the Intel x86 instruction set. x86-64 Assembly Programming Introduction to Computer Systems Resources (15-213 Introduction to Computer Systems Resources from CMU) Lots materials for learning machine-level ... read more »
Recent
[May 21, 2013 | Views: 0]
How to get the assembly code for OCaml code generated by ocamlopt? : How to get the native assembly code (e.g. x86-64 asm) for OCaml code generated by the native ocamlopt compiler? Continue ... read more »
[Apr 8, 2013 | Views: 605]
OCaml is an interesting functional language. There are lots learning materials on the Internet. I compile a list of resources for OCaml learning and reference. Recommended OCaml learning and reference material The ... read more »
[Dec 21, 2012 | Views: 3,972]
When do debugging and optimization, we sometimes need to generate and investigate into the assembly generated by the compiler. Generating a mixed source and assembly list will help the programmer ... read more »
[Dec 20, 2012 | Views: 196]
It is simple for basic use. Just the example code. It is clear enough. int SendMsgToOtherWindow( ) { // find window by name HWND wnd = ... read more »
[Dec 6, 2012 | Views: 227]
read more »
[Dec 6, 2012 | Views: 247]
read more »
[Dec 6, 2012 | Views: 303]
Here, we show some example code on Win32. The code are operations on file on Win32 OSes. void show(const char *folderPath) { CFileFind finder; CString path(folderPath); ... read more »