ByteBuffer Implementation in x86_64 Assembly Language with C Interface.
by Jerry McIntosh
This is an Assembly Language implementation of a ByteBuffer. The ByteBuffer is implemented as a shared-library. There is also a C demo program.
- Linux OS
- Programming languages: Assembly, C
- Netwide Assembler (NASM), GCC compiler, and the make utility
- your favorite text editor
- and working at the command line
Run the following command in the ByteBuffer-main folder:
sh ./bytebuffer_make.shIn the demo folder enter the following command:
./go_demo.shYou can modify a define in the C header file main.h:
#define BUFFER_SIZE 256Modifying the define will change the amount of memory allocated to the ByteBuffer.
You can uncomment the define BB_DEBUG to display debug output from the demo program.
Remember to recompile the demo program should you modify it:
In the ./demo folder enter the following:
make clean; makeHave Fun!