While this is likely not exactly what you want....
assembler directives -- doc @
http://www.xgc.com/manuals/gcc-erc32-ug/p4node59.html
laptop:~$ cat f.s
.arch msp430x110
.text
.org 0xE000
nop
.end
ok....
msp430-gcc -c f.s -o f.out
this will compile. If you want to link and load, then it will look for
a entry point, main.
to convert from elf to hex (intel hex)
msp430-objcopy -O ihex f.out f.hex
hope this helps... my program ... this was large. If you want to link
and load, then you likely need to define an entry point.
On Mon, 2009-08-10 at 16:13 -0600, david feldman wrote:
> I'm in need of some help getting started using msp430-gcc on a linux machine
> using command line. I have no prior experience with gcc so there's a learning
> curve I'd like help shortening.
>
> After kind help from this list, I've installed msp430-gcc and related binary
> utilities onto my Ubuntu 9.04 machine from repository at wyper.ca. The
> instructions I used (from a handy PDF file at www.develissimo.net) are much
> more extensive (including install of debugger proxy, eclipse IDE, and so on)
> than I needed in this case (just "binutils".)
>
> My need is only to assemble msp430 assembly source file and link into an
> intel hex file that I can then transmit to my remotely-located msp430
> microcontroller. I do not need jtag support (my microcontroller has a serial
> port loader and I won't be using jtag due to it's remote location). I can
> only access the remote linux machine (connected to the msp430
> microcontroller) via ssh, so I can't use the Eclipse IDE. Therefore, this is
> a really basic configuration - just enough to edit-assemble-link-download,
> all from command line.
>
> I am sure my problem (at this stage) is just lack of appropriate command line
> options for msp430-gcc, but when I try to compile a trivial assembly language
> program:
>
> $ cat f.s
> include
> org #0xE000
> nop
> end
>
> with the command (based on the msp430-gcc documentation on assembling I
> found):
>
> $ msp430-gcc -D_GNU_ASSEMBLER_ -x assembler-with-cpp -c f.s -o f.o
>
> I get this output:
>
> f.s: Assembler messages:
> f.s:1: Error: unknown opcode `include'
> f.s:2: Error: unknown opcode `org'
> f.s:4: Error: unknown opcode `end'
>
> What other options do I need to tell msp430-gcc how to recognize the incoming
> source code?
>
> Very tks,
>
> Dave
>
>
>
> _________________________________________________________________
> Get back to school stuff for them and cashback for you.
> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users