Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve stdlib #97

Merged
merged 13 commits into from
Oct 27, 2024
Merged

Improve stdlib #97

merged 13 commits into from
Oct 27, 2024

Commits on Sep 15, 2024

  1. compiler: test: tac codegen: re-enable Expr * test

    The testcase was disabled but seems to be working.
    
    Signed-off-by: Alexander Hansen <[email protected]>
    pointbazaar committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    0ee9d02 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Configuration menu
    Copy the full SHA
    678320e View commit details
    Browse the repository at this point in the history
  2. avr: restore frame pointer YL:YH after a call

    The frame pointer could have been changed by the function that was
    called. Since it is using YL:YH also for it's frame pointer.
    
    So the frame pointer needs to be restored after a call.
    pointbazaar committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    1d8d487 View commit details
    Browse the repository at this point in the history
  3. examples: simple USART example

    This example is for the atmega328p.
    
    It's showing how to transmit increasing numbers and how to configure the
    USART peripheral.
    
    It's been tested with logic analyzer and USART protocol decoder but not
    yet connected to an actual USART receiver / usb to serial converter.
    pointbazaar committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    82feaf1 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. compiler: avr: return 16 bit values correctly

    This incomplete implementation just looks if the temporary
    for the value being returned is wide.
    
    It can be completed by also checking the with of the type of the value being returned.
    pointbazaar committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    d2d0b25 View commit details
    Browse the repository at this point in the history
  2. [wip] avr: add concept of 'width' to TAC_LOAD

    This needs to be expanded further and put into all LOAD/STORE
    IR instructions.
    pointbazaar committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    0dcf69b View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    0b08c0f View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. test: avr: start using redzone for test

    create a redzone in memory to detect unintended writes around the target
    address.
    pointbazaar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    aac9a6a View commit details
    Browse the repository at this point in the history
  2. test: avr: introduce vmcu_system_read_2_gpr

    new wrapper function to simplify reading a value from 2 adjacent
    registers.
    pointbazaar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    434a54f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7ec3837 View commit details
    Browse the repository at this point in the history
  4. test: avr codegen: TAC_STORE_CONST_ADDR 16 bit

    also test 16 bit values for TAC_STORE_CONST_ADDR
    pointbazaar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    3d0433c View commit details
    Browse the repository at this point in the history
  5. test: avr codegen: TAC_LOAD_CONST_ADDR 16 bit

    test 16 bit values for TAC_LOAD_CONST_ADDR
    pointbazaar committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    c2922c1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4f4a09f View commit details
    Browse the repository at this point in the history