User forums > Embedded development

Assembler tools for CB

<< < (5/7) > >>

scarphin:

--- Quote from: oBFusCATed on March 11, 2014, 08:15:58 am ---
--- Quote from: scarphin on March 11, 2014, 03:31:55 am ---May I ask which part do you think is annoying? The implementation or the usage?

--- End quote ---
For me it will be annoying if I have to enter the same defines at two places.

--- End quote ---
Ok, I got your point. As I previously mentioned, pure assembler projects are not uncommon in the embedded world. Considering that, how convenient it would be to enter the defines to be used with assembler into C/C++ defines? I think that wouldn't be good practice. I agree there may be times to enter same defines in both places but not all the time.


--- Quote from: oBFusCATed on March 11, 2014, 08:15:58 am ---
--- Quote from: scarphin on March 11, 2014, 03:31:55 am ---Btw do you think extra search paths for assembler under search directories can be implemented too?

--- End quote ---
It is possible, but is it needed? The question is same as the one for defines: would they be different than C/C++ ones most of the times?

--- End quote ---
I think you should consider library paths here. I can't think of a reason why C/C++ and Assembler libraries (or hand-crafted routines) should be kept in the exact same folder. In the current cb implementation, it's impractical and error prone to enter the library paths in the command line for non C/C++ files to assemble the assembler files. So what I do is to copy the library file to the source folder and then include it. If search paths for assembler were available that would be way too much practical and convenient. ;)

oBFusCATed:
What do you mean by pure assembler project? Can you post a listing of an example real-world project?

Because if you have a project made only of asm files, then you can use both defines and search paths for the c/c++.
The only point to have separate options for asm and c/c++ is when you have a mixed source project and you need to specify different options for different files.

scarphin:
By 'pure assembler project' I mean a project consisting of only assembler files. By 'listing' do you mean a listing file (.lst)? If yes, there is one with C source in the link below for avr-gcc:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=73133
If you were talking about something else, please elaborate.


--- Quote from: oBFusCATed on March 11, 2014, 08:10:22 pm ---Because if you have a project made only of asm files, then you can use both defines and search paths for the c/c++.

--- End quote ---
Then is there a specific reason not to merge the compiler and linker search paths too?


--- Quote from: oBFusCATed on March 11, 2014, 08:10:22 pm ---The only point to have separate options for asm and c/c++ is when you have a mixed source project and you need to specify different options for different files.

--- End quote ---
Mixed source projects has a percentage in the embedded world, that's the main reason I was asking for assembler support in the beginning.

oBFusCATed:

--- Quote from: scarphin on March 12, 2014, 10:08:20 am ---If you were talking about something else, please elaborate.

--- End quote ---
On unix the command is find <root_of_project> on windows dir /s <root_of_project>. I just want to see a real world project structure. I want to see the layout on disk.


--- Quote from: scarphin on March 12, 2014, 10:08:20 am ---Then is there a specific reason not to merge the compiler and linker search paths too?

--- End quote ---
Yes, because 99% of the times they are different, because headers and library files are stored in different locations.


--- Quote from: scarphin on March 12, 2014, 10:08:20 am ---Mixed source projects has a percentage in the embedded world, that's the main reasonI was asking for assembler support in the beginning.

--- End quote ---
Okay.

scarphin:

--- Quote from: oBFusCATed on March 12, 2014, 08:29:55 pm ---
--- Quote from: scarphin on March 12, 2014, 10:08:20 am ---If you were talking about something else, please elaborate.

--- End quote ---
On unix the command is find <root_of_project> on windows dir /s <root_of_project>. I just want to see a real world project structure. I want to see the layout on disk.

--- End quote ---
Sry doesn't compute. ;) An assembler library or a mixed source or a project for some other software or...?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version