- Notifications
You must be signed in to change notification settings - Fork0
This project aims to design and implement a StackFrame module that provides the functionality to establish the base pointer and return address in the caller’s stack frame and also print out stackframe data. This project helps understand stack frames through inline assembly with x86-64 in AT&T syntax.
ChedySmaoui/C-StackFrame-Printer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Please give me a star if this was useful to you!
This project aims to design and implement a StackFrame module that provides the functionality to establish the base pointer and return address in the caller’s stack frame and also print out stackframe data. This project helps understand stack frames through inline assembly with x86-64 in AT&T syntax.
SeeMakefile for the build scripts.
To build theTryStackFrames executable, simply runmake at the command line in the current directory.
To compile and run the test suite, runmake Tests.
Important: the commandmake clean will try to delete any executable or .o files in the src directory (tests or main executable files included).
- My program implementation is inStackFrames.c
- Theheader file has been edited to add MACRO definitions
- TheMakefile has been edited to implement to make the test suite executables.
To compile and run the test suite, runmake Tests. This will automatically print the Stack Frames for different variants of executeFactorial.The stack frames printed out are for the following factorial numbers: 0!, 1!, 7!, 10!, and 20!.
- TestFactorial0 is a variant almost identical toFactorial but performs factorial(0,1).
- TestFactorial1 is a variant almost identical toFactorial but performs factorial(1,1).
- TestFactorial7 is a variant almost identical toFactorial but performs factorial(7,1).
- TestFactorial10 is a variant almost identical toFactorial but performs factorial(10,1).
- TestFactorial20 is a variant almost identical toFactorial but performs factorial(20,1).
About
This project aims to design and implement a StackFrame module that provides the functionality to establish the base pointer and return address in the caller’s stack frame and also print out stackframe data. This project helps understand stack frames through inline assembly with x86-64 in AT&T syntax.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.