Remove the static from variables in functions that are not likely to be called multiple times and are not expected to be recursive.
I am backing off the experiment into this optimization for now.
uint8_t i = 0;
{
- static const uint8_t enables[] = {
+ const uint8_t enables[] = {
fake_parameter_documents_enable_e,
fake_parameter_shared_enable_e,
fake_parameter_static_enable_e,
};
- static const uint8_t disables[] = {
+ const uint8_t disables[] = {
fake_parameter_documents_enable_e,
fake_parameter_shared_enable_e,
fake_parameter_static_enable_e,
};
- static const uint16_t flags[] = {
+ const uint16_t flags[] = {
fake_main_flag_enable_documents_e,
fake_main_flag_enable_shared_e,
fake_main_flag_enable_static_e,
}
{
- static const f_number_unsigned_t parameters[] = {
+ const f_number_unsigned_t parameters[] = {
fake_parameter_build_e,
fake_parameter_data_e,
fake_parameter_documents_e,
fake_default_work_s,
};
- static const bool cleanups[] = {
+ const bool cleanups[] = {
F_true, // fake_parameter_build_e
F_true, // fake_parameter_data_e
F_true, // fake_parameter_documents_e
}
{
- static const f_number_unsigned_t parameters[] = {
+ const f_number_unsigned_t parameters[] = {
fake_parameter_define_e,
fake_parameter_mode_e,
};
main->setting.data,
};
- static const uint8_t parameters_size[] = {
+ const uint8_t parameters_size[] = {
9,
3,
};
data->path_documents,
};
- static const uint8_t parameters_size[] = {
+ const uint8_t parameters_size[] = {
3,
3,
3,
data->path_work_programs,
};
- static const uint8_t parameters_size[] = {
+ const uint8_t parameters_size[] = {
3,
3,
};
}
{
- static const f_number_unsigned_t parameter_code[] = {
+ const f_number_unsigned_t parameter_code[] = {
fss_read_parameter_at_e,
fss_read_parameter_depth_e,
fss_read_parameter_line_e,
fss_read_long_delimit_s,
};
- static const f_string_static_t message_positive_number = macro_f_string_static_t_initialize_1("a positive number", 0, 17);
- static const f_string_static_t message_string = macro_f_string_static_t_initialize_1("a string", 0, 8);
- static const f_string_static_t message_value = macro_f_string_static_t_initialize_1("a value", 0, 7);
+ const f_string_static_t message_positive_number = macro_f_string_static_t_initialize_1("a positive number", 0, 17);
+ const f_string_static_t message_string = macro_f_string_static_t_initialize_1("a string", 0, 8);
+ const f_string_static_t message_value = macro_f_string_static_t_initialize_1("a value", 0, 7);
- static const f_string_static_t parameter_message[] = {
+ const f_string_static_t parameter_message[] = {
message_positive_number,
message_positive_number,
message_positive_number,
message_value,
};
- static const uint32_t parameter_flag[] = {
+ const uint32_t parameter_flag[] = {
fss_read_main_flag_at_e,
fss_read_main_flag_depth_e,
fss_read_main_flag_line_e,
}
if (parameters->array[fss_read_parameter_columns_e].result & f_console_result_found_e) {
- static const f_number_unsigned_t parameter_code[] = {
+ const f_number_unsigned_t parameter_code[] = {
fss_read_parameter_depth_e,
fss_read_parameter_line_e,
fss_read_parameter_pipe_e,
fss_read_long_total_s,
};
- static const uint8_t parameter_match[] = {
+ const uint8_t parameter_match[] = {
f_console_result_value_e,
f_console_result_value_e,
f_console_result_found_e,
}
{
- static const uint32_t has[] = {
+ const uint32_t has[] = {
fss_write_parameter_content_end_e,
fss_write_parameter_content_next_e,
fss_write_parameter_object_open_e,
};
- static const uint16_t has_flag[] = {
+ const uint16_t has_flag[] = {
fss_write_main_flag_content_end_e,
fss_write_main_flag_content_next_e,
fss_write_main_flag_object_open_e,
fss_write_long_object_open_s,
};
- static const uint16_t has_cannots[][2] = {
+ const uint16_t has_cannots[][2] = {
{ fss_write_parameter_content_next_e, fss_write_parameter_object_open_e },
{ fss_write_parameter_content_end_e, fss_write_parameter_object_open_e },
{ fss_write_parameter_content_end_e, fss_write_parameter_content_next_e },
}
if (main->program.parameters.array[iki_read_parameter_literal_e].result & f_console_result_found_e) {
- static const uint8_t ids[3] = {
+ const uint8_t ids[3] = {
iki_read_parameter_object_e,
iki_read_parameter_content_e,
iki_read_parameter_total_e,
main->setting.flag |= iki_read_main_flag_literal_e;
}
else if (main->program.parameters.array[iki_read_parameter_object_e].result & f_console_result_found_e) {
- static const uint8_t ids[2] = {
+ const uint8_t ids[2] = {
iki_read_parameter_content_e,
iki_read_parameter_total_e,
};