Skip to content

Portability of bit fields #9

Description

@giomba

Because of portability reasons, I've always avoided bit fields, and done bit masking operations by hand.

Sort of religious thought. What does even portability mean? If the compiler's implementation is coherent with itself (as it should be), does this problem even arise? I don't think we are going to link together objects produced by different compilers, or mix binaries of different architectures. We don't even need low level access to hardware registers, this is "high level" software.

Anyhow, some thoughts need to be done about:

  • consequences of using bit fields in src/fdc.c
  • consequences of accessing raw video memory in src/video.c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions