laesaster / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Support for assembly files in IDE #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?
As described in http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1276151354 the 
Arduino IDE doesn't support .S (assembly) files.
Whenever someone wants to use these, they have to be put in a library, which 
makes editing them from the IDE impossible.

Why?
Even though it's probably for some advanced users only, since it only requires 
very small changes, I think we should add it.

The compile scripts already support .S files, they're just not opened in the 
IDE or copied to the 'work folder'.

Would this cause any incompatibilities with previous versions?  If so, how
can these be mitigated?
I don't foresee any real incompatibilities. If someone already has .S files in 
their project directory these will suddenly appear in the IDE and be copied to 
the 'work folder'.

The changes required are both in app\src\processing\app\Sketch.java (rev. 964).
Line 1345 should be changed to
if (sc.isExtension("c") || sc.isExtension("cpp") || sc.isExtension("h") || 
sc.isExtension("s")) {

Line 1800 should be changed to
return new String[] { "pde", "c", "cpp", "h", "s" };

Original issue reported on code.google.com by qistoph on 11 Jun 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Does this actually allow editing of assembly files in a reasonable manner?  
Things like indentation, auto-format, etc. seem like they won't work (or make 
sense), but maybe that's not a problem.  Do you have a sense of how awkward it 
is to actually edit the .S files in the IDE after this change?

Original comment by dmel...@gmail.com on 4 Jul 2010 at 4:33

GoogleCodeExporter commented 9 years ago
dmellis, currently the actual editing isn't really great and maybe even 
impossible in Arduino IDE. Especially the tabs being replaced by spaces makes 
it hard.

These minor changes do however at least make the compilation process support 
assembly files.

It would be great if the IDE would really support the modification of assembly 
files. For now I think this makes at least the compilation a whole lot easier.

Original comment by qistoph on 4 Jul 2010 at 9:02

GoogleCodeExporter commented 9 years ago
Rather than have these open in the IDE, I think it would be better to add 
support for a code/ or libraries/ folder in the sketch (issue #314).  Then you 
could put assembly files there and they'd be linked against your sketch.  
Proper support for editing assembly files probably isn't going to happen any 
time soon, so it seems better to simply link them somehow.  (I'm marking this 
as a duplicate so it points to issue #314, even though they're not quite the 
same thing.)

Original comment by dmel...@gmail.com on 2 Aug 2010 at 7:41

GoogleCodeExporter commented 9 years ago
Issue 359 has been merged into this issue.

Original comment by dmel...@gmail.com on 27 Sep 2010 at 5:10