-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Assembler No Longer Support #3059
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
Comments
Arduino has never supported .s assembler files in sketches. They are supported in libraries and the core library, but not sketches. I have a patch that adds this support for sketches. If the Arduino devs say they'd like to add this, I'd be happy to prepare a pull request. This has been discussed before. I believe the decision, by David Mellis, was not to support .s files in sketch. As a general rule, I don't put time into pull requests for features that have been previously rejected. I just maintain the patches and update them for each Arduino release. Of course, I'm happy to contribute if the feature is wanted. |
Thank you for the post! Huh. I know René Bohne used some assembly in LumiNet. For some reason I got it my head the code was delivered as a sketch but that cannot possibly be true. LumiNet used the t84 processor. In any case, there is a person on the forum who really wants assembly support. I will suggest packaging the assembly as a library. |
Yes. If it's possible and it's done, why not? |
Maybe @damellis could explain his thinking about why Arduino doesn't support .s files in sketches? I would agree with "why not". In fact, I put this patch into my collection of unofficial patches for Teensy, because a few different people requested it. If you want to use .s files in a sketch, you can install Teensyduino. Most of my patches check if a Teensy board is selected and don't alter Arduino's behavior, but for this one I didn't bother with the extra checking. It should allow using .s file in sketches for any type of board. |
Even without the .s file support, you CAN use inline assembly. It's a different coding style that many people who want to just use assembly don't like, but really it's about the same if you merely create empty functions to serve as containers for assembly. |
Fixed in #3227. Available since next hourly build http://www.arduino.cc/en/Main/Software#hourly |
The IDE makes no attempt to include the assembler file in the build. The platform.txt file includes entries for dot-S files implying they are supported.
Additional information: With the IDE still open...
The text was updated successfully, but these errors were encountered: