Skip to content

Conversation

@alanvgreen
Copy link
Contributor

Fixes large data in address space. This makes loading programs onto
proto2 faster since these data structures do not need to be updated if
they have not changed.

Signed-off-by: Alan Green avg@google.com

Fixes large data in address space. This makes loading programs onto
proto2 faster since these data structures do not need to be updated if
they have not changed.

Signed-off-by: Alan Green <avg@google.com>
@alanvgreen alanvgreen requested a review from tcal-x January 6, 2022 06:16
Copy link
Collaborator

@tcal-x tcal-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Does this PR take care of everything we were trying to do in #323 , or is there some non-overlap?

LDSCRIPTS := $(LDSCRIPT) $(GEN_LD_DIR)/output_format.ld $(GEN_LD_DIR)/regions.ld

SRC_DIR := $(BUILD_DIR)/src
SRC_DIR := src
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are in $(BUILD_DIR), right? What's the motivation for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this change, to identify a file by path, the linker script would need to include the absolute path name.

@alanvgreen
Copy link
Contributor Author

I had forgotten about #323 ! Thank you for pointing it out.

My motivation with this change is to shorten the load time during the development cycle - it currently takes 80s to load hps_accel software onto proto2. It might also bring some consistency to run times (depending on why they vary so much) but that is not the goal here.

@tcal-x
Copy link
Collaborator

tcal-x commented Jan 6, 2022

My motivation with this change is to shorten the load time during the development cycle - it currently takes 80s to load hps_accel software onto proto2.

I see, by having more fixed data at fixed locations, the number of blocks of flash storage that don't change and therefore don't need to be rewritten is greatly increased.

@alanvgreen
Copy link
Contributor Author

alanvgreen commented Jan 6, 2022 via email

@alanvgreen alanvgreen merged commit c0b830a into google:main Jan 6, 2022
@alanvgreen alanvgreen deleted the fix_addr branch January 6, 2022 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants