This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering... why not support asm templates THAT ARE NOT string constants??? And I mean for static compilation cases only. For example: asm(instrx $%d, $%d\n",src1,src2 : "=r" (var1) : "r" (var2)); I assume printf-like formating. Or else you may need either write a double-nested switch (and what about 32x32 cases???): switch (src1) { ... case i: ... switch (src2) case j: asm( ... ); break; break; } There is really not need for that. It could be constrained for static compilation cases. So this could be replaced: for (i=0; i<MAX_i; i++) for (j=0; j<MAX_j; j++) { 1. assign value via sprintf to a variable string 2. use asm with printf-like formatting on the variable string } Any comments are appreciated. Regards Nikolaos Kavvadias <nkavv@physics.auth.gr> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCSpalMPiy0tCWlz4RAtbxAKCC13excUtW0dYtW9PogekKEyNDUwCeIjcY PWRhC9cFusmVkHe5ly4zEeI= =bl6b -----END PGP SIGNATURE----- ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |