-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
NOZZLE_CLEAN_FEATURE is no longer dependent of HAS_BED_PROBE #4348
Conversation
Does declaring a function as |
I'm going with this in /**
* Blocking movement and shorthand functions
*/
static void do_blocking_move_to(float x, float y, float z, float fr_mm_m=0.0);
static void do_blocking_move_to_axis_pos(AxisEnum axis, float where, float fr_mm_m=0.0);
static void do_blocking_move_to_x(float x, float fr_mm_m=0.0);
static void do_blocking_move_to_y(float y);
static void do_blocking_move_to_z(float z, float fr_mm_m=0.0);
static void do_blocking_move_to_xy(float x, float y, float fr_mm_m=0.0); |
For me this seemed always to be a bit random. My best description would be: |
The "shorthand" functions, we presume, will be inlined because all they do is pass-through their arguments. A compiler should catch that right away and not generate two function calls. |
I would think so, otherwise gcc would bark at us for sure for violating some C spec. And we must never forget that with -O2 the compiler is far more smarter than us concerning inlining, this means that even if we want to force something to inline is ultimately a compiler decision what to do. |
I kept out |
This isn't really performance-intensive code, so reducing size is more important. Inline functions of course cost more storage space. Compiling with
Apparently declaring them |
Followup #4054 .
This PR changes
NOZZLE_CLEAN_FEATURE
so it is no longer dependent ofHAS_BED_PROBE
.