Skip to content

i486 targets #70

Closed
Closed

Description

@seritools

Set target cpu to i486, reduce max_atomic_width to 32.

There are two places that unconditionally use 64bit atomics in windows code:

  • futex.rs: Can just make conditional on #[cfg(target_has_atomic = "64")]
  • time.rs: can store the FREQUENCY value in a regular static mut global, and use an AtomicBool to indicate whether it's fully set already

Limits crates to those without AtomicU64/AtomicI64 usage.

Activity

  1. changed the title [-]i386 targets[/-] [+]i486 targets[/+] on Aug 16, 2026
  2. seritools commented on Aug 16, 2026

    @seritools
    MemberAuthor

    update: i386 isn't likely to happen: cmpxchg is 486+ and libatomic-ish emulation is too much 😅

    Even beyond atomics, LLVM doesn't support i386 well: llvm/llvm-project#58470

    Let's try with i486 then!

  3. seritools commented on Aug 18, 2026

    @seritools
    MemberAuthor
    Image
  4. seritools commented on Aug 18, 2026

    @seritools
    MemberAuthor
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions