{"id":22873989,"url":"https://github.com/vshender/programming-from-the-ground-up","last_synced_at":"2026-04-27T21:31:11.244Z","repository":{"id":229876580,"uuid":"777886379","full_name":"vshender/programming-from-the-ground-up","owner":"vshender","description":"Programming examples from the book \"Programming from the Ground Up\" by Josh Bartlett.","archived":false,"fork":false,"pushed_at":"2024-03-27T12:01:46.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T12:57:20.208Z","etag":null,"topics":["assembly-language","assembly-x86","gnu-assembler","linux","low-level-programming"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vshender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-26T17:27:52.000Z","updated_at":"2024-04-10T22:40:36.000Z","dependencies_parsed_at":"2025-05-06T14:45:33.236Z","dependency_job_id":null,"html_url":"https://github.com/vshender/programming-from-the-ground-up","commit_stats":null,"previous_names":["vshender/programming-from-the-ground-up"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vshender/programming-from-the-ground-up","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshender%2Fprogramming-from-the-ground-up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshender%2Fprogramming-from-the-ground-up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshender%2Fprogramming-from-the-ground-up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshender%2Fprogramming-from-the-ground-up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vshender","download_url":"https://codeload.github.com/vshender/programming-from-the-ground-up/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshender%2Fprogramming-from-the-ground-up/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly-language","assembly-x86","gnu-assembler","linux","low-level-programming"],"created_at":"2024-12-13T14:32:14.461Z","updated_at":"2026-04-27T21:31:11.227Z","avatar_url":"https://github.com/vshender.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# programming-from-the-ground-up\n\nProgramming examples from the book [\"Programming from the Ground Up\"](https://savannah.nongnu.org/projects/pgubook/) by Josh Bartlett.\n\n## 3. Your First Programs\n\n- [exit.s](03.your-first-programs/exit.s) -- a simple assembly program that just exits and returns a status code back to the Linux kernel.\n- [maximum.s](03.your-first-programs/maximum.s) -- a program that finds the maximum number of a set of numbers.\n\n\n## 4. All About Functions\n\n- [power.s](04.all-about-functions/power.s) -- a program that illustrates how functions work by solving $2^3 + 5^2$.\n- [factorial.s](04.all-about-functions/factorial.s) -- a program that calculates factorial using a recursive function.\n\n\n## 5. Dealing with Files\n\n- [toupper.s](05.dealing-with-files/toupper.s) -- a program that converts an input file to an output file with all letters converted to uppercase.\n\n\n## 6. Reading and Writing Simple Records\n\n- [record-def.s](06.reading-and-writing-simple-records/record-def.s) -- record definitions.\n- [linux.s](06.reading-and-writing-simple-records/linux.s) -- common Linux definitions.\n- [read-record.s](06.reading-and-writing-simple-records/read-record.s) -- a function that reads a record from the file descriptor.\n- [write-record.s](06.reading-and-writing-simple-records/write-record.s) -- a function that writes a record to the file descriptor.\n- [write-records.s](06.reading-and-writing-simple-records/write-records.s) -- a program that writes some sample records to the file.\n- [count-chars.s](06.reading-and-writing-simple-records/count-chars.s) -- a function that counts the characters in the string until a null byte is reached.\n- [write-newline.s](06.reading-and-writing-simple-records/write-newline.s) -- a function that writes a newline to the file descriptor.\n- [read-records.s](06.reading-and-writing-simple-records/read-records.s) -- a program that reads records from the file.\n- [add-year.s](06.reading-and-writing-simple-records/add-year.s) -- a program that reads records from the input file, increments the age of each record and writes them to the output file.\n\n\n## 7. Developing Robust Programs\n\n- [error-exit.s](07.developing-robust-programs/error-exit.s) -- a function that writes the error message to the standard error output and exits.\n- [add-year.s](07.developing-robust-programs/add-year.s) -- a program that reads records from the input file, increments the age of each record and writes them to the output file.\n\n\n## 8. Sharing Functions with Code Libraries\n\n- [helloworld-nolib.s](08.sharing-functions-with-code-libraries/helloworld-nolib.s) -- a program that writes the message \"hello world\" and exits.\n- [helloworld-lib.s](08.sharing-functions-with-code-libraries/helloworld-lib.s) -- a program that writes the message \"hello world\" and exits using the standard C library.\n- [printf-example.s](08.sharing-functions-with-code-libraries/printf-example.s) -- a program that demonstrates the use of the `printf` function.\n- [write-record.s](08.sharing-functions-with-code-libraries/write-record.s), [read-record.s](08.sharing-functions-with-code-libraries/read-record.s) -- functions that write and read records, which are used to create a shared library for working with records.\n- [write-records.s](08.sharing-functions-with-code-libraries/write-records.s) -- a program that writes some sample records to the file and uses the shared library for working with records.\n\nNotes:\n\n- On x86-64 Linux in order to be able to link 32-bit programs with the `c` library install the `libc6-dev-i386` package:\n\n  ```\n  $ sudo apt install libc6-dev-i386\n  ```\n- In order to run the `write-records.exe` program, execute the following command:\n\n  ```\n  $ LD_LIBRARY_PATH=. ./write-records.exe\n  ```\n\n\n## 9. Intermediate Memory Topics\n\n- [alloc.s](09.intermediate-memory-topics/alloc.s) -- a simple memory manager.\n- [read-records.s](09.intermediate-memory-topics/read-records.s) -- a program that reads records from the file and uses a simple memory manager to allocate memory.\n\n\n## 10. Counting Like a Computer\n\n- [integer-to-string.s](10.counting-like-a-computer/integer-to-string.s) -- a function that converts an integer number to a ecimal string representation.\n- [conversion-program.s](10.counting-like-a-computer/conversion-program.s) -- a program that converts an integer number to a decimal string representation and prints it.\n\n\n## 11. High-Level Languages\n\n- [hello-world.c](11.high-level-languages/hello-world.c) -- hello world program in C.\n- [hello-world.pl](11.high-level-languages/hello-world.pl) -- hello world program in Perl.\n- [hello-world.py](11.high-level-languages/hello-world.py) -- hello world program in Python.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshender%2Fprogramming-from-the-ground-up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvshender%2Fprogramming-from-the-ground-up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshender%2Fprogramming-from-the-ground-up/lists"}