Pages: [1]   Go Down
Author Topic: Support assembly language source files  (Read 698 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 203
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For those of us who might be writing a misguided library that requires a fair amount of assembly code, it would be nice if we could have assembly files in our libraries and sketches.

I'm not sure about sketches, but for libraries this little patch works on the principle that gcc knows what to do with a ".S" file. It may have unintended side effects, I'm not sure what the app does in the way of scanning or parsing files.

Index: Library.java
===================================================================
--- Library.java        (revision 252)
+++ Library.java        (working copy)
@@ -260,7 +260,7 @@
   {
     FileFilter onlyCFiles = new FileFilter() {
       public boolean accept(File file) {
-        return (file.getName()).endsWith(".c");
+        return (file.getName()).endsWith(".c") || (file.getName()).endsWith(".S");
       }
     };
     return folder.listFiles(onlyCFiles);
Logged

Pages: [1]   Go Up
Jump to: