Skip to content

Conversation

@roussov
Copy link

@roussov roussov commented Dec 3, 2025

Add Linux x86-64 uppercaser example using System V AMD64 ABI and C library calls.

Pass argc/argv via registers (rdi/rsi) instead of accessing them on the stack.

Print the effective argument count (excluding argv[0]) using printf with correct varargs setup (xor eax, eax).

Iterate over argv[1..argc-1], converting each argument string to uppercase in-place before printing.

Preserve and update all existing comments to document both ABI usage and the uppercase transformation.

Add Linux x86-64 uppercaser example using System V AMD64 ABI and C library calls.

Pass argc/argv via registers (rdi/rsi) instead of accessing them on the stack.

Print the effective argument count (excluding argv[0]) using printf with correct varargs setup (xor eax, eax).

Iterate over argv[1..argc-1], converting each argument string to uppercase in-place before printing.

Preserve and update all existing comments to document both ABI usage and the uppercase transformation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant