<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — ARMCC byte alignment cannot be greater than 8 bytes warning]]></title>
		<link>https://www.wolfssl.com/forums/topic2125-armcc-byte-alignment-cannot-be-greater-than-8-bytes-warning.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2125.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in ARMCC byte alignment cannot be greater than 8 bytes warning.]]></description>
		<lastBuildDate>Tue, 25 Jun 2024 08:38:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ARMCC byte alignment cannot be greater than 8 bytes warning]]></title>
			<link>https://www.wolfssl.com/forums/post7726.html#p7726</link>
			<description><![CDATA[<p>Has this problem been properly fixed?<br /><a href="https://planet-clicker.com"><span style="color: #FAFAFA">planet clicker</span></a></p>]]></description>
			<author><![CDATA[null@example.com (kneepadsbubbly)]]></author>
			<pubDate>Tue, 25 Jun 2024 08:38:19 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7726.html#p7726</guid>
		</item>
		<item>
			<title><![CDATA[Re: ARMCC byte alignment cannot be greater than 8 bytes warning]]></title>
			<link>https://www.wolfssl.com/forums/post7715.html#p7715</link>
			<description><![CDATA[<p>We&#039;ve put up a candidate fix for the problem you reported.&nbsp; See <a href="https://github.com/wolfSSL/wolfssl/pull/7652">https://github.com/wolfSSL/wolfssl/pull/7652</a></p><p>The fix is quite simple, and doesn&#039;t require anything specific to ARMCC.</p><p>Edit: this fix is now merged, so you can just clone/pull master to get it.</p>]]></description>
			<author><![CDATA[null@example.com (douzzer)]]></author>
			<pubDate>Mon, 17 Jun 2024 23:14:22 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7715.html#p7715</guid>
		</item>
		<item>
			<title><![CDATA[ARMCC byte alignment cannot be greater than 8 bytes warning]]></title>
			<link>https://www.wolfssl.com/forums/post7692.html#p7692</link>
			<description><![CDATA[<p>1. wolfSSL source code<br /></p><div class="codebox"><pre><code>  /* Only use alignment in wolfSSL/wolfCrypt if WOLFSSL_USE_ALIGN is set */
    #ifdef WOLFSSL_USE_ALIGN
        /* For IAR ARM the maximum variable alignment on stack is 8-bytes.
         * Variables declared outside stack (like static globals) can have
         * higher alignment. */
        #if defined(__ICCARM__)
            #define WOLFSSL_ALIGN(x) XALIGNED(8)
        #else
            #define WOLFSSL_ALIGN(x) XALIGNED(x)
        #endif
    #else
        #define WOLFSSL_ALIGN(x) /* null expansion */
    #endif

    #ifndef ALIGN8
        #define ALIGN8   WOLFSSL_ALIGN(8)
    #endif
    #ifndef ALIGN16
        #define ALIGN16  WOLFSSL_ALIGN(16)
    #endif
    #ifndef ALIGN32
        #define ALIGN32  WOLFSSL_ALIGN(32)
    #endif
    #ifndef ALIGN64
        #define ALIGN64  WOLFSSL_ALIGN(64)
    #endif
    #ifndef ALIGN128
        #define ALIGN128 WOLFSSL_ALIGN(128)
    #endif
    #ifndef ALIGN256
        #define ALIGN256 WOLFSSL_ALIGN(256)
    #endif

    #if !defined(PEDANTIC_EXTENSION)
        #if defined(__GNUC__)
            #define PEDANTIC_EXTENSION __extension__
        #else
            #define PEDANTIC_EXTENSION
        #endif
    #endif /* !PEDANTIC_EXTENSION */</code></pre></div><br /><p>2. ARMCC warning info</p><p>wolfcrypt\src\kdf.c(87): warning:&nbsp; #1041-D: alignment for an auto object may not be larger than 8</p><p>3. How should I solve this warning? I can think of two ways:</p><p>a. Add recognition of ARMCC macro definition, and when it is recognized as an ARMCC compiler, perform the same behavior as the IAR ARM compiler, that is, 8-byte alignment.<br />b. Write a custom #define ALIGN8 macro for each byte alignment function<br />What should I do to deal with it reasonably and without any problems?</p>]]></description>
			<author><![CDATA[null@example.com (chenkanghao001)]]></author>
			<pubDate>Fri, 07 Jun 2024 06:51:36 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7692.html#p7692</guid>
		</item>
	</channel>
</rss>
