Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Diffs between OpenBSD 3.9 gcc 3.3.5 Linux 2.6 gcc 4.0 ?

Started 3 years, 3 months ago by n33ed
( I'm hoping some of you experienced OpenBSD users may be able to provide some insight for a noviate like myself about what should be a simple C problem \(but it's not simple until it's fixed :-\). Here's the situation: I have a medium-sized program in C that I wrote on Linux 2.6 using gcc 3.3.6, now ported to gcc 4.0. It intentionally has no malloc/free calls; instead, it uses arrays...
Site: Archivaty.net  Archivaty.net - site profile
Forum: comp.unix.bsd.openbsd.misc  comp.unix.bsd.openbsd.misc - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week

Other posts in this thread:

BobH replied 3 years, 3 months ago
n33ed wrote: Quote: UINT8 packed[REQEXEMSG_LEN]; // about 1 Mb UINT8 sessEKey[LTKEY_LEN]; // 16 bytes UINT8 sessHKey[LTKEY_LEN]; // 16 bytes UINT8 padKey[MAXEXESIZE]; // about 1 Mb SINT32 err, packedLen = -1; other vars elided // ..... call to fractious routine: err = buildReqExeMsg(packed, sizeof(packed), sessEKey, sessHKey, ...

n33ed replied 3 years, 3 months ago
BobH, thanks for your advice but I regret to say that I've already tried both of those with much the same results. :-( Your advice on not counting on the compiler passing a pointer for arrays is well-taken, but for gcc it should be consistent. Besides, it works fine in other places in the same program, plus it works on little test programs such as the one below, which seems to work fine ...

DoN. Nichols replied 3 years, 3 months ago
According to n33ed <n33ed@hotmail.com>: Quote: BobH, thanks for your advice but I regret to say that I've already tried both of those with much the same results. :-( Your advice on not counting on the compiler passing a pointer for arrays is well-taken, but for gcc it should be consistent. Besides, it works fine in other places in the same program, plus it works on little test ...

 

Top contributing authors

Name
Posts
n33ed
2
user's latest post:
Diffs between OpenBSD 3.9 gcc...
Published (2006-09-23 17:08:00)
BobH, thanks for your advice but I regret to say that I've already tried both of those with much the same results. :-( Your advice on not counting on the compiler passing a pointer for arrays is well-taken, but for gcc it should be consistent. Besides, it works fine in other places in the same program, plus it works on little test programs such as the one below, which seems to work fine and identically in OpenBSD and Linux. This seems to...
BobH
1
user's latest post:
Diffs between OpenBSD 3.9 gcc...
Published (2006-09-23 04:10:00)
n33ed wrote: Quote: UINT8 packed[REQEXEMSG_LEN]; // about 1 Mb UINT8 sessEKey[LTKEY_LEN]; // 16 bytes UINT8 sessHKey[LTKEY_LEN]; // 16 bytes UINT8 padKey[MAXEXESIZE]; // about 1 Mb SINT32 err, packedLen = -1; other vars elided // ..... call to fractious routine: err = buildReqExeMsg(packed, sizeof(packed), sessEKey, sessHKey, padKey, reqexelen, exefile, exefileLen, &amp;packedLen);
DoN. Nichols
1
user's latest post:
Diffs between OpenBSD 3.9 gcc...
Published (2006-09-23 19:06:00)
According to n33ed &lt;n33ed@hotmail.com&gt;: Quote: BobH, thanks for your advice but I regret to say that I've already tried both of those with much the same results. :-( Your advice on not counting on the compiler passing a pointer for arrays is well-taken, but for gcc it should be consistent. Besides, it works fine in other places in the same program, plus it works on little test programs such as the one below, which seems to...

Related threads on "Archivaty.net":

Related threads on other sites:

Thread profile page for "Diffs between OpenBSD 3.9 gcc 3.3.5 Linux 2.6 gcc 4.0 ?" on http://www.archivaty.net. This report page is a snippet summary view from a single thread "Diffs between OpenBSD 3.9 gcc 3.3.5 Linux 2.6 gcc 4.0 ?", located on the Message Board at http://www.archivaty.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity