Skip to content

Improve generation of array set and get #347

Description

@dplassgit

longtemp[0] = 1 is compiled to

  ; allocated RSI for calculations
  mov RSI, 5  ; const index; full index=1+dims*4+index*base size
  add RSI, RBX  ; actual location
  mov DWORD [RSI], 1  ; store it!

but it could be

  mov DWORD [RBX+5], 1  ; store it!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions