Skip to content

Kingerthanu/Assembly_linkedLists_Pointers_Arrays_Sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Assembly_linkedLists_Pointers_Arrays_Sorting

Line-by-line analysis of assembly code of C code. C code creates an array with insertion of integers, linked list as well s pointers and sorting these data types. The assembly code is interpreted from this C code in order to give thorough explanation of each line of assembly and its function in the program to see "under-the-hood" how higher level languages go down into smaller level languages and similarities in arithmetics as well as differences. This project allowed me to gain some knowledge in C as well as a lot more of a understanding of assembly code.

Cornstarch <3


Cornstarch <3 Cornstarch <3 Cornstarch <3 Cornstarch <3

The Breakdown:

Functionality Wise This Is Quite A Straight Forward C -> Assembly Program In Which I Saw Myself Intrepreting Line-By-Line What Each Part Of Assembly Was Doing For A C Program By Converting It To The Language.

This Includes A Program For A Sort Function In Which Sorts A Given Array In C Using A Simple Swap Algorithm. This Is Then Interpreted Into Assembly.

Another Program Is A Pointer Program In Which In C We Define A Pointer And Print Each Of Its Individual Parts (I.E. ptr [value], *ptr [dereferenced value], &ptr [reference value]). This Is Then Also Interpreted Into Assembly

Finally We Have A Linked List Program In C In Which Creates A Linked List Structure And Connects The Nodes Then Traverses Through Them Printing Their Value. We Then Interpreted This Into Assembly.

While Functionally This Is Quite Close-Ended, It Was A Huge Learning Opporunity As I Saw How Annoying Assembly Was But Also How Powerful And Intuitive It Can Be In Many Cases If You Are Accustomed To The Registers And Their Mainly Defined Usages.

Cornstarch <3 Cornstarch <3 Cornstarch <3 Cornstarch <3


Cornstarch <3 Cornstarch <3 Cornstarch <3 Cornstarch <3

Features:

Sort C vs Assembly:

sort1

sort21 sort22


Pointer C vs Assembly:

pointer2_ pointer1_


Array C vs Assembly:

array2_ array1_


Linked List C vs Assembly:

linked2_ linked1_

Cornstarch <3 Cornstarch <3 Cornstarch <3 Cornstarch <3

About

Line-By-Line Analysis Of Assembly Code And Following Proper Registry Etiquette.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published