Skip to content

Endianness Discrepancy #627

@kambadur

Description

@kambadur

Codecast appears to operate as big endian, which can confuse students learning byte-level memory inspection. For the below example I print the bytes to the console to check the endianness and see that Codecast operates in big-endian.
My question is is there a possibility to switch the endianness to little endian in Codecast? Thank you.

unsigned int x = 0x12345678; unsigned char *ptr = (unsigned char*)&x; printf("%x\n", ptr[0]); // Output: 12 (big endian) // Observed on my local dev machine (gcc on linux): 78 (little endian)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions