Re: How to write an array var into .s file without null-terminator

2012-12-11 Thread Ian Lance Taylor
On Tue, Dec 11, 2012 at 5:27 PM, Dmitry Mikushin wrote: > > We are trying to embed a raw vector of chars into .s file using the > following code: > > tree index_type = build_index_type(size_int(moduleBitcode.size())); > tree const_char_type = build_qualified_type( > uns

How to write an array var into .s file without null-terminator

2012-12-11 Thread Dmitry Mikushin
Dear All, We are trying to embed a raw vector of chars into .s file using the following code: tree index_type = build_index_type(size_int(moduleBitcode.size())); tree const_char_type = build_qualified_type( unsigned_char_type_node, TYPE_QUAL_CONST); tree str

How to write an array var into .s file without null-terminator

2012-12-11 Thread Dmitry Mikushin
Dear All, We are trying to embed a raw vector of chars into .s file using the following code: tree index_type = build_index_type(size_int(moduleBitcode.size())); tree const_char_type = build_qualified_type( unsigned_char_type_node, TYPE_QUAL_CONST); tree str