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

need to reduce occupied size for compact mode #192

Open
RodrigoDornelles opened this issue Sep 10, 2021 · 1 comment
Open

need to reduce occupied size for compact mode #192

RodrigoDornelles opened this issue Sep 10, 2021 · 1 comment

Comments

@RodrigoDornelles
Copy link
Owner

It is already very efficient in ram issues, but it is important to reduce the disk/rom space occupied for smaller processors and microcontrollers.

Sketch uses 21816 bytes (67%) of program storage space. Maximum is 32256 bytes.
Global variables use 326 bytes (15%) of dynamic memory, leaving 1722 bytes for local variables. Maximum is 2048 bytes.
@RodrigoDornelles
Copy link
Owner Author

#151 this can resolve somewhere. it can still be improved by using a conditional branch beforehand for mode and null, which ends up saving good resources for each cpu mode.

if (reg == 0) {
 return &cpu_common_null;
}
else if (reg == 7) {
 return &cpu_commo_mode;
}

RodrigoDornelles added a commit that referenced this issue Oct 6, 2021
RodrigoDornelles added a commit that referenced this issue Oct 23, 2021
* change CPU_PACK macro #151 #192

* attempt two

* fix: Returning a value in function with return type 'void'

* add test nop

* add tests for all cpu reserved modes

* add driver_tty_output_raw & uses compact error log in flag _3BC_COMPACT

* better consistency in error messages ERROR_INVALID_REGISTER & ERROR_INVALID_CPU_MODE

* better consistency in error messages ERROR_NULL_POINTER

* better consistency in error messages ERROR_INVALID_CHAR_SCAPE & ERROR_INVALID_CHAR_SIZE

* add tests for ERROR_NONE_TTY & ERROR_UNSUPPORTED

* add extras tests for scape characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant